pub enum SqliteCompatError {
Limbo(String),
TypeMap(String),
Connection(String),
NestedTransaction,
Schema(String),
Other(String),
}Expand description
Errors produced by the oxisql-sqlite-compat backend.
These are always mapped to the corresponding OxiSqlError variant before
they cross the Connection trait boundary.
Internal helpers and module tests use this type directly for richer
context.
Variants§
Limbo(String)
A Limbo SQL execution or step error.
The inner string is the Display representation of limbo::Error.
TypeMap(String)
A type-mapping failure (e.g. value out of range, unexpected variant).
Connection(String)
Connection setup / open failure.
NestedTransaction
Attempted a nested BEGIN while already inside a transaction.
Schema(String)
A schema introspection query returned an unexpected result.
Other(String)
A general internal error that does not fit the above categories.
Trait Implementations§
Source§impl Debug for SqliteCompatError
impl Debug for SqliteCompatError
Source§impl Display for SqliteCompatError
impl Display for SqliteCompatError
Source§impl Error for SqliteCompatError
impl Error for SqliteCompatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for SqliteCompatError
impl From<Error> for SqliteCompatError
Source§impl From<SqliteCompatError> for OxiSqlError
impl From<SqliteCompatError> for OxiSqlError
Source§fn from(e: SqliteCompatError) -> Self
fn from(e: SqliteCompatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SqliteCompatError
impl RefUnwindSafe for SqliteCompatError
impl Send for SqliteCompatError
impl Sync for SqliteCompatError
impl Unpin for SqliteCompatError
impl UnsafeUnpin for SqliteCompatError
impl UnwindSafe for SqliteCompatError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more