Expand description
Turn certain sqlite errors (received through rusqlite) into structured data.
§Caveat Emptor
This crate will parse the raw error strings generated by the underlying SQLite library. There are several potential pitfalls with this:
- SQLite does not appear to provide any stability guarantees with regards to its error messages.
- Compliation options may affect what error messages SQLite will generate.
- SQLite libraries from third parties may have modified error messages.
There are more robust ways to solve the problem this crate attempts to solve – for instance using triggers.
Enums§
- Interpreted
Error - A structured interpretation of certain rusqlite errors.
Functions§
- deconstruct_
error - Attempt to interpret a
rusqlite::Error
, and turn it into anInterpretedError
. - interpret
- Interpret an
rusqlite::Error
into aString
. - register_
interpreter - Register a closure that translates an
InterpretedError
into aString
.