Expand description
SQLite storage backend for cdk
Re-exports§
pub use mint::SQLMintDatabase;
pub use wallet::SQLWalletDatabase;
Modules§
- database
- Database traits definition
- mint
- SQL database implementation of the Mint
- pool
- Very simple connection pool, to avoid an external dependency on r2d2 and other crates. If this endup work it can be re-used in other parts of the project and may be promoted to its own generic crate
- stmt
- Stataments mod
- value
- Generic Rust value representation for data from the database
- wallet
- SQLite Wallet Database
Macros§
- column_
as_ binary - Parses a SQL column as a binary
- column_
as_ nullable_ binary - Parses a column as a NULL or Binary
- column_
as_ nullable_ number - Parses a column as a number or NULL
- column_
as_ nullable_ string - Parses a SQL column as a string or NULL
- column_
as_ number - Parses a column as a number
- column_
as_ string - Parses a SQL column as a string
- unpack_
into - Unpacks a vector of Column, and consumes it, parsing into individual variables, checking the vector is big enough.
Enums§
- Conversion
Error - Data conversion error
Functions§
- run_
db_ operation - Run a database operation and log slow operations, it also converts and logs any error with a given info for more context
- run_
db_ operation_ sync - Run a database operation and log slow operations, it also converts and logs any error with a given info for more context. This function is expecting a synchronous database operation