Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

A thin, additive SQLite framework over raw rusqlite.

Structs§

DbReader
Read-only handle over the reader connection pool. Cloning shares the underlying pool.
DbValueRef
A borrowed SQL value handed to FromSqlValue when reading a column.
DbWriter
Write handle over the single writer connection.
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).

Functions§

open
Opens a database over database_filepath with the default reader-pool size.
open_with_pool_size
Opens a database over database_filepath with the given reader-pool size. The writer is always a single connection.