Skip to main content

Module db

Module db 

Source
Expand description

Public SQLite database facade for canister methods.

Update paths accept only synchronous closures, which prevents holding a DB transaction across await. Query paths open SQLite in read-only/query-only mode.

Re-exports§

pub use row::FromColumn;
pub use row::Row;
pub use row::TextLen;
pub use transaction::UpdateConnection;
pub use value::Null;
pub use value::ToSql;
pub use value::Value;
pub use value::NULL;

Modules§

connection
Thin SQLite C connection wrapper bound to the icstable VFS.
migrate
Minimal schema migration runner.
pragmas
Required SQLite PRAGMA setup.
row
Typed reads from the current SQLite result row.
statement
Prepared statement lifecycle and row iteration.
transaction
Synchronous transaction wrapper for update canister methods.
value
Typed SQLite parameter binding.

Structs§

ChecksumRefresh
Db
DbHandle

Enums§

DbError