Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

A thin, additive SQLite framework over raw rusqlite.

Structs§

Database
A rusqlite-backed connection pool. Cloning shares the underlying pools.
DbValueRef
A borrowed SQL value handed to FromSqlValue when reading a column.
InList
A list bound as an array parameter for use with rarray.
ReadTransaction
A read transaction (DEFERRED) held across .await points, on a reader connection.
ReadTx
A read-only transaction. Borrows a connection on which a DEFERRED transaction is open; the transaction is never committed (changes roll back when it ends).
Row
A single result row. Wraps rusqlite::Row so callers read columns through the codec via Row::get without naming rusqlite.
WriteTransaction
A read-write transaction (IMMEDIATE) held across .await points, on the single writer connection.
WriteTx
A read-write transaction. Borrows a connection on which an IMMEDIATE transaction is open; the transaction is committed by the owner when the work returns Ok. Derefs to ReadTx for all read queries and adds execute.

Enums§

DbValue
An owned SQL value produced when binding a Rust value as a query parameter.

Traits§

FromSqlValue
Builds a Rust value from a SQL column value (the read side of the codec).
ToSqlValue
Converts a Rust value into its SQL parameter representation (the write side of the codec).