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
mssqlA connector interface for the SQL Server database. - MssqlUrl
mssqlWraps a connection url and exposes the parsing logic used by Quaint, including default values. - Mysql
mysqlA connector interface for the MySQL database. - MysqlUrl
mysqlWraps a connection url and exposes the parsing logic used by quaint, including default values. - PostgreSql
postgresqlA connector interface for the PostgreSQL database. - PostgresUrl
postgresqlWraps a connection url and exposes the parsing logic used by Quaint, including default values. - A reference to a
Rowin 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
sqliteA connector interface for the SQLite database - SqliteParams
sqliteWraps 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
mssqlTLS 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
Snapshotfor 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.