Module sqlite

Module sqlite 

Source
Expand description

SQLite backend glue backed by a bb8 pool of rusqlite connections.

Blocking rusqlite work runs on a dedicated worker thread per pooled connection, keeping the async runtime responsive while avoiding deadpool-sqlite.

Submodules:

  • config: connection configuration and pool setup
  • params: parameter conversion between middleware and SQLite types
  • query: result extraction and building
  • executor: database operation execution
  • transaction: explicit transaction support
  • prepared: prepared statement helpers

Re-exports§

pub use config::SqliteOptions;
pub use config::SqliteOptionsBuilder;
pub use connection::SqliteConnection;
pub use connection::apply_wal_pragmas;
pub use executor::execute_batch;
pub use executor::execute_dml;
pub use executor::execute_select;
pub use params::Params;
pub use prepared::SqlitePreparedStatement;
pub use query::build_result_set;
pub use transaction::Prepared;
pub use transaction::Tx;
pub use transaction::begin_transaction;
pub use typed::Idle;
pub use typed::InTx;
pub use typed::SqliteTypedConnection;

Modules§

config
connection
executor
params
prepared
query
transaction
typed
Experimental bb8-backed SQLite typestate API. Provides SqliteTypedConnection<Idle> / SqliteTypedConnection<InTx> using an owned pooled SQLite connection with explicit BEGIN/COMMIT/ROLLBACK.