Expand description
A set of abstractions for database connections.
Provides traits for database querying and executing, and for spawning transactions.
Connectors for MySQL, PostgreSQL, SQLite and SQL Server connect to the corresponding databases and implement the Queryable trait for generalized querying interface.
Re-exports
pub use self::metrics::query;
pub use tokio_postgres;
pub use mysql_async;
pub use rusqlite;
pub use tiberius;
pub use native::*;
pub use external::*;
Modules
Structs
- A default representation of an SQL database transaction. If not commited, a transaction will be rolled back by default when dropped.
- A connector interface for the SQL Server database.
- Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
- A connector interface for the MySQL database.
- This type represents MySql server error.
- Wraps a connection url and exposes the parsing logic used by quaint, including default values.
- A connector interface for the PostgreSQL database.
- Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
- A reference to a
Row
in aResultSet
. The columns can be accessed either through their position or using the column name. - Encapsulates a set of results and their respective column names.
- Thin iterator for ResultSet rows. Might become lazy one day.
- A connector interface for the SQLite database
- Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
Enums
- General information about a SQL connection.
- TLS mode when connecting to SQL Server.
- Controls the locking and row versioning behavior of connections or transactions. The levels correspond to the ANSI standard isolation levels, plus
Snapshot
for SQL Server. - One of the supported SQL variants.
Constants
Traits
- Represents a connection or a transaction that can be queried.
- A thing that can start a new transaction.
Functions
- Constructor function for a
ParamsFromIter
. See its documentation for more. - Returns the SQLite version as a string; e.g.,
"3.16.2"
for version 3.16.2.