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 mysql_async;
pub use tokio_postgres;
pub use tiberius;
pub use rusqlite;
Structs
- Mssql
mssql
A connector interface for the SQL Server database. - MssqlUrl
mssql
Wraps a connection url and exposes the parsing logic used by Quaint, including default values. - Mysql
mysql
A connector interface for the MySQL database. - MysqlUrl
mysql
Wraps a connection url and exposes the parsing logic used by quaint, including default values. - PostgreSql
postgresql
A connector interface for the PostgreSQL database. - PostgresUrl
postgresql
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.
- Sqlite
sqlite
A connector interface for the SQLite database - SqliteParams
sqlite
Wraps a connection url and exposes the parsing logic used by Quaint, including default values. - SslParams
postgresql
- A representation of an SQL database transaction. If not commited, a transaction will be rolled back by default when dropped.
Enums
- General information about a SQL connection.
- EncryptMode
mssql
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.
- SslAcceptMode
postgresql
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.