pub type RuntimeSqliteError = InitializationError<Error>;Aliased Type§
pub enum RuntimeSqliteError {
Show 21 variants
BusyTimeoutTooLarge {
milliseconds: u128,
},
BusyTimeout(Error),
JournalModeQuery(Error),
DatabasePathUnavailable,
FileBackedTransient {
path: PathBuf,
},
DatabasePath {
path: PathBuf,
source: Error,
},
InitializationLockOpen {
path: PathBuf,
source: Error,
},
InitializationLockAcquire {
path: PathBuf,
source: Error,
},
InitializationLock(LockError),
WalPragma(Error),
WalNotEnabled {
mode: String,
},
WalBusyNotWal {
mode: String,
},
WalBusyQuery {
wal_error: Box<Error>,
query_error: Box<Error>,
},
Synchronous(Error),
SchemaReadiness(Error),
SchemaNotInitialized {
name: &'static str,
version: i64,
},
NewerSchemaVersion {
name: &'static str,
stored: i64,
supported: i64,
},
Transaction(Error),
Initialize(Error),
SchemaMarker(Error),
Commit(Error),
}Variants§
BusyTimeoutTooLarge
The configured busy timeout cannot be represented by SQLite.
BusyTimeout(Error)
The connection rejected its configured busy timeout.
JournalModeQuery(Error)
The current journal mode could not be observed.
The connection does not own a file-backed main database.
FileBackedTransient
A file-backed connection was passed to the transient initializer.
DatabasePath
The opened database path could not be resolved to one lock identity.
InitializationLockOpen
The persistent sidecar lock could not be opened.
InitializationLockAcquire
Exclusive ownership of the sidecar lock could not be acquired.
InitializationLock(LockError)
The sidecar lock was still held when the wait budget expired, or the operating system refused it. Carries the path and the elapsed wait.
WalPragma(Error)
SQLite rejected WAL journal mode for a non-contention reason.
WalNotEnabled
SQLite accepted the journal-mode request but returned another mode.
WalBusyNotWal
WAL promotion was busy and the database remained in another mode.
WalBusyQuery
WAL promotion and the diagnostic journal-mode query both failed.
Synchronous(Error)
The connection rejected the runtime synchronous setting.
SchemaReadiness(Error)
The schema marker could not be inspected.
SchemaNotInitialized
No initializer committed the exact schema version before the readiness lease became available.
NewerSchemaVersion
The database was initialized by a newer incompatible schema owner.
Transaction(Error)
The atomic schema transaction could not begin.
Initialize(Error)
The owning schema callback failed.
SchemaMarker(Error)
The schema marker table or row could not be written.
Commit(Error)
The schema and marker transaction could not commit.