Available on crate feature
__sqlite-shared only.Expand description
Provides types and functions related to working with SQLite
Much of this module is re-exported from database agnostic locations. However, if you are writing code specifically to extend Diesel on SQLite, you may need to work with this module directly.
Re-exports§
pub use self::query_builder::SqliteQueryBuilder;
Modules§
- authorizer
- Types for the SQLite authorizer callback.
- expression
- Sqlite related query builder extensions.
- query_
builder - The SQLite query builder
- sql_
types - SQLite specific sql types
Structs§
- Collation
Needed Context - Context passed to the collation-needed callback.
- Serialized
Database SerializedDatabaseis a wrapper for a serialized database that is dynamically allocated by callingsqlite3_serialize. This RAII wrapper is necessary to deallocate the memory when it goes out of scope withsqlite3_free.- Sqlite
- The SQLite backend
- Sqlite
Bind Collector i-implement-a-third-party-backend-and-opt-into-breaking-changes - The
BindCollectorused by the SQLite backend. - Sqlite
Bind Collector Data i-implement-a-third-party-backend-and-opt-into-breaking-changes - SQLite bind collector data that is movable across threads.
- Sqlite
Bind Value - This type represents a value bound to a sqlite prepared statement
- Sqlite
Change Event - Describes a single row change event from SQLite.
- Sqlite
Change Ops - A bitmask of SQLite change operations used for filtering which events a hook should receive.
- Sqlite
Connection - Connections for the SQLite backend. Unlike other backends, SQLite supported connection URLs are:
- Sqlite
Function Behavior - Flags controlling SQLite custom function behavior.
- Sqlite
Read Only Blob - A read only SQLite Blob
- Sqlite
Trace Flags - Trace event mask selecting which events the callback receives.
- Sqlite
Update Router - Routes SQLite row-change events to per-table callbacks, selected by typed
table!markers. - Sqlite
Value - Raw sqlite value as received from the database
Enums§
- Authorizer
Context - Context information passed to the authorizer callback.
- Authorizer
Decision - Authorizer callback decision.
- Busy
Decision - The decision returned by an
on_busycallback when the database is locked. - Commit
Decision - The decision returned by an
on_commitcallback, controlling whether a pending commit completes. - Json
Valid Flag - Flags for the
json_validfunction - Owned
Sqlite Bind Value i-implement-a-third-party-backend-and-opt-into-breaking-changes - An owned value bound to a SQLite prepared statement.
- Progress
Decision - The decision returned by an
on_progresscallback, controlling whether a long-running query keeps executing. - Sqlite
Bind Value Ref i-implement-a-third-party-backend-and-opt-into-breaking-changes - The concrete bind value carried by a live
SqliteBindCollector. - Sqlite
Change Op - Identifies which kind of row change occurred.
- Sqlite
Limit - SQLite resource limits that can be configured per-connection.
- Sqlite
Text Rep - Text encoding SQLite requested for a missing collation.
- Sqlite
Trace Event - Trace events delivered to the trace callback.
- Sqlite
Type - Determines how a bind parameter is given to SQLite
Traits§
- Sqlite
Aggregate Function - Trait for the implementation of a SQLite aggregate function
Functions§
- cancel_
auto_ extension - Removes a previously registered auto-extension, returning
trueif it was found (docs). - register_
auto_ extension - Registers an auto-extension that runs for every SQLite connection opened in this process, including non-Diesel ones.
- reset_
auto_ extension - Clears all registered auto-extensions (docs).