pub enum SqliteError {
OpenFailed(String),
DatabaseClosed,
MigrationFailed(String),
QueryFailed(String),
TransactionFailed(String),
TypeConversion(String),
InvalidParameter(String),
TableNotFound(String),
ConstraintViolation(String),
IoError(String),
SerdeError(String),
Internal(String),
}Expand description
SQLite 操作错误
Variants§
OpenFailed(String)
数据库打开失败
DatabaseClosed
数据库已关闭
MigrationFailed(String)
迁移失败
QueryFailed(String)
查询执行失败
TransactionFailed(String)
事务失败
TypeConversion(String)
类型转换失败
InvalidParameter(String)
参数错误
TableNotFound(String)
表不存在
ConstraintViolation(String)
约束违反(唯一、外键等)
IoError(String)
IO 错误
SerdeError(String)
序列化/反序列化错误
Internal(String)
内部错误
Trait Implementations§
Source§impl Debug for SqliteError
impl Debug for SqliteError
Source§impl Display for SqliteError
impl Display for SqliteError
Source§impl Error for SqliteError
impl Error for SqliteError
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 SqliteError
impl From<Error> for SqliteError
Source§impl From<Error> for SqliteError
impl From<Error> for SqliteError
Auto Trait Implementations§
impl Freeze for SqliteError
impl RefUnwindSafe for SqliteError
impl Send for SqliteError
impl Sync for SqliteError
impl Unpin for SqliteError
impl UnwindSafe for SqliteError
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