pub enum QueryExecutionError {
TableNotFound,
FieldNotFound,
TypeMismatch,
InvalidCondition,
OutOfMemory,
ConstraintsConflicts,
InternalError,
NotAllowed,
UnsupportedFunction(String),
InvalidValue,
DatabaseExists,
ResourceLimitExceeded(String),
}Expand description
查询执行错误
Variants§
TableNotFound
表未找到
FieldNotFound
字段未找到
TypeMismatch
类型不匹配
InvalidCondition
无效的条件
OutOfMemory
内存不足
ConstraintsConflicts
约束冲突
InternalError
内部错误
NotAllowed
操作不允许
UnsupportedFunction(String)
不支持的函数
InvalidValue
无效的值
DatabaseExists
数据库已存在
ResourceLimitExceeded(String)
资源限制超出
Trait Implementations§
Source§impl Clone for QueryExecutionError
impl Clone for QueryExecutionError
Source§fn clone(&self) -> QueryExecutionError
fn clone(&self) -> QueryExecutionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryExecutionError
impl Debug for QueryExecutionError
Source§impl Display for QueryExecutionError
impl Display for QueryExecutionError
Source§impl Error for QueryExecutionError
impl Error for QueryExecutionError
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<QueryExecutionError> for SqlError
impl From<QueryExecutionError> for SqlError
Source§fn from(err: QueryExecutionError) -> Self
fn from(err: QueryExecutionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueryExecutionError
impl PartialEq for QueryExecutionError
impl StructuralPartialEq for QueryExecutionError
Auto Trait Implementations§
impl Freeze for QueryExecutionError
impl RefUnwindSafe for QueryExecutionError
impl Send for QueryExecutionError
impl Sync for QueryExecutionError
impl Unpin for QueryExecutionError
impl UnsafeUnpin for QueryExecutionError
impl UnwindSafe for QueryExecutionError
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