pub enum SqlError {
Show 22 variants
TableNotFound(String),
RelationshipNotFound(String),
RelationshipAmbiguous(String),
InvalidTableName(String),
EmptyTableName,
NoSelectItems,
InvalidParameter(String),
FailedToBuildWhereClause,
FailedToBuildSelectClause,
FailedToBuildOrderByClause,
FailedToBuildLimitOffset,
FailedToBuildLateralJoin,
InvalidJsonPathForSql,
InvalidTypeCastForSql,
UnsafeUpdate,
UnsafeDelete,
LimitWithoutOrder,
NoInsertValues,
NoUpdateSet,
NoTableContext,
RelationNotFound {
from_table: String,
to_table: String,
},
ManyToManyNotYetSupported {
junction_table: String,
},
}Variants§
TableNotFound(String)
RelationshipNotFound(String)
RelationshipAmbiguous(String)
InvalidTableName(String)
EmptyTableName
NoSelectItems
InvalidParameter(String)
FailedToBuildWhereClause
FailedToBuildSelectClause
FailedToBuildOrderByClause
FailedToBuildLimitOffset
FailedToBuildLateralJoin
InvalidJsonPathForSql
InvalidTypeCastForSql
UnsafeUpdate
UnsafeDelete
LimitWithoutOrder
NoInsertValues
NoUpdateSet
NoTableContext
RelationNotFound
ManyToManyNotYetSupported
Trait Implementations§
Source§impl Error for SqlError
impl Error for SqlError
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()
impl StructuralPartialEq for SqlError
Auto Trait Implementations§
impl Freeze for SqlError
impl RefUnwindSafe for SqlError
impl Send for SqlError
impl Sync for SqlError
impl Unpin for SqlError
impl UnwindSafe for SqlError
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