Expand description
An async SQLite driver focused on performance, correctness, and flexibility.
Musq supports the SQLite release bundled by its libsqlite3-sys dependency.
It does not support linking against older or system SQLite libraries.
With libsqlite3-sys 0.38.1, the bundled SQLite release is 3.53.2.
Re-exports§
pub use crate::types::vec::VecBit;vecpub use crate::types::vec::VecF32;vecpub use crate::types::vec::VecInt8;vecpub use crate::encode::Null;pub use crate::encode::Null;pub use crate::error::DecodeError;pub use crate::error::EncodeError;pub use crate::error::Error;pub use crate::error::Result;pub use crate::expr::Expr;pub use crate::query::Query;pub use crate::query::query;pub use crate::query::query_as;pub use crate::query::query_as_with;pub use crate::query::query_scalar;pub use crate::query::query_scalar_with;pub use crate::query::query_with;pub use crate::query::quote_identifier;
Modules§
- decode
- Decoding support for database values.
Provides
Decodefor decoding values from the database. - encode
- Encoding support for database values.
Provides
Encodefor encoding values for the database. - error
- Error types and result helpers. Types for working with errors produced by Musq.
- expr
- SQL expression helpers for dynamic queries.
Helpers for building safe SQL expressions for use with
Values. - query
- Query types and helpers.
- types
- Built-in type adapters. Conversions between Rust and SQLite types.
Macros§
- sql
- Expand a SQL query from a format string and arguments.
- sql_as
- Expand a SQL query that maps rows into a destination type.
- values
- Build a
Valuescollection from literal key/value pairs.
Structs§
- Arguments
- Collection of bound SQL arguments.
- Connection
- A single, standalone connection to a SQLite database.
- DbStatus
- A database-connection status measurement.
- Musq
- Create a Musq connection
- Pool
- An asynchronous pool of database connections.
- Pool
Connection - A single database connection acquired from a
crate::Pool. - Pool
Stats - Point-in-time diagnostic counters for a
Pool. - Prepared
- A prepared statement that can build executable queries.
- Query
Builder - Incrementally build a SQL query with bound parameters.
- Query
Result - Summary information returned after executing a query.
- Row
- Implementation of
Rowfor SQLite. - Sqlite
Error - An error returned from Sqlite
- Sqlite
Runtime Info - Runtime identity and compile options for the bundled SQLite library.
- Transaction
- An in-progress database transaction or savepoint.
- Values
- An ordered collection of key-value pairs for building dynamic SQL queries.
- WalCheckpoint
- Result of a WAL checkpoint operation.
Enums§
- Auto
Vacuum - Refer to SQLite documentation for auto-vacuum mode semantics.
- DbStatus
Kind - Per-connection SQLite status counter.
- Journal
Mode - Refer to SQLite documentation for the meaning of the database journaling mode.
- Locking
Mode - Refer to SQLite documentation for the meaning of the connection locking mode.
- Sqlite
Data Type - Data types supported by SQLite.
- Synchronous
- Refer to SQLite documentation for the meaning of various synchronous settings.
- Value
- Owned representation of a SQLite value.
- Values
Entry - A value in a
Valuescollection. - WalCheckpoint
Mode - WAL checkpoint mode.
Traits§
- AllNull
- Helper trait used internally to determine if all columns belonging to a
record are
NULLin a given row. - Execute
- A type that may be executed against a database connection.
- FromRow
- A record that can be built from a row returned by the database.
- Into
Values Entry - Convert a value into a
ValuesEntry.