Modules§
Macros§
- named_
params - A macro making it more convenient to pass lists of named parameters
as a
&[(&str, &dyn ToSql)]
. - params
- A macro making it more convenient to longer lists of
parameters as a
&[&dyn ToSql]
.
Structs§
- AndThen
Rows - An iterator over the mapped resulting rows of a query, with an Error type unifying with Error.
- Batch
- Batch iterator
- CONN
- Cached
Statement - Cacheable statement.
- Column
- Information about a column of a SQLite query.
- Connection
- A connection to a SQLite database.
- Interrupt
Handle - Allows interrupting a long-running computation.
- Map
F
is used to transform the streaming iterator into a fallible iterator.- Mapped
Rows - An iterator over the mapped resulting rows of a query.
- Open
Flags - Flags for opening SQLite database connections. See sqlite3_open_v2 for details.
- Params
From Iter - Adapter type which allows any iterator over
ToSql
values to implementParams
. - Row
- A single result row of a query.
- Rows
- An handle for the resulting rows of a query.
- Savepoint
- Represents a savepoint on a database connection.
- Statement
- A prepared statement.
- Transaction
- Represents a transaction on a database connection.
Enums§
- Database
Name - Name for a database within a SQLite connection.
- Drop
Behavior - Options for how a Transaction or Savepoint should behave when it is dropped.
- Error
- Enum listing possible errors from rusqlite.
- Error
Code - Error Codes
- Statement
Status - Prepared statement status counters.
- Transaction
Behavior - Options for transaction behavior. See BEGIN TRANSACTION for details.
Constants§
- MAIN_DB
- Shorthand for
DatabaseName::Main
. - NO_
PARAMS Deprecated - To be used when your statement has no parameter.
- TEMP_DB
- Shorthand for
DatabaseName::Temp
.
Traits§
- Optional
Extension - See the method documentation.
- Params
- Trait used for sets of parameter passed into SQL statements/queries.
- RowIndex
- A trait implemented by types that can index into columns of a row.
- ToSql
- A trait for types that can be converted into SQLite values. Returns
Error::ToSqlConversionFailure
if the conversion fails.
Functions§
- bypass_
sqlite_ ⚠initialization - rusqlite’s check for a safe SQLite threading mode requires SQLite 3.7.0 or later. If you are running against a SQLite older than that, rusqlite attempts to ensure safety by performing configuration and initialization of SQLite itself the first time you attempt to open a connection. By default, rusqlite panics if that initialization fails, since that could mean SQLite has been initialized in single-thread mode.
- params_
from_ iter - Constructor function for a
ParamsFromIter
. See its documentation for more. - stable_
capacity - Gets capacity of the stable memory in bytes.
- stable_
grow_ bytes - Attempts to grow the memory by adding new pages.
- version
- Returns the SQLite version as a string; e.g.,
"3.16.2"
for version 3.16.2. - version_
number - Returns the SQLite version as an integer; e.g.,
3016002
for version 3.16.2.
Type Aliases§
- Result
- A typedef of the result returned by many methods.