Crate cdk_sql_common

Crate cdk_sql_common 

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

ConversionError
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