Skip to main content

classify_sqlite_error

Function classify_sqlite_error 

Source
pub fn classify_sqlite_error(error: &Error) -> SqliteErrorClass
Expand description

Classify a rusqlite error at the storage level.

Adoption contract: store crates route every raw rusqlite::Error through this one classifier when deciding transient-vs-corrupt at their store boundary, instead of re-matching SQLite error codes locally. SqliteErrorClass::Other is the store layer’s to interpret (constraint violations become CAS/stale semantics there, not here). Classification alone never authorizes a retry — see the crate-level retryability note.