Skip to main content

RuntimeSqliteError

Type Alias RuntimeSqliteError 

Source
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.

Fields

§milliseconds: u128
§

BusyTimeout(Error)

The connection rejected its configured busy timeout.

§

JournalModeQuery(Error)

The current journal mode could not be observed.

§

DatabasePathUnavailable

The connection does not own a file-backed main database.

§

FileBackedTransient

A file-backed connection was passed to the transient initializer.

Fields

§path: PathBuf
§

DatabasePath

The opened database path could not be resolved to one lock identity.

Fields

§path: PathBuf
§source: Error
§

InitializationLockOpen

The persistent sidecar lock could not be opened.

Fields

§path: PathBuf
§source: Error
§

InitializationLockAcquire

Exclusive ownership of the sidecar lock could not be acquired.

Fields

§path: PathBuf
§source: Error
§

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.

Fields

§mode: String
§

WalBusyNotWal

WAL promotion was busy and the database remained in another mode.

Fields

§mode: String
§

WalBusyQuery

WAL promotion and the diagnostic journal-mode query both failed.

Fields

§wal_error: Box<Error>
§query_error: Box<Error>
§

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.

Fields

§name: &'static str
§version: i64
§

NewerSchemaVersion

The database was initialized by a newer incompatible schema owner.

Fields

§name: &'static str
§stored: i64
§supported: i64
§

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.