Module quaint::connector

source ·
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 tiberius;
  • pub use rusqlite;

Structs

  • Mssqlmssql
    A connector interface for the SQL Server database.
  • Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
  • Mysqlmysql
    A connector interface for the MySQL database.
  • Wraps a connection url and exposes the parsing logic used by quaint, including default values.
  • PostgreSqlpostgresql
    A connector interface for the PostgreSQL database.
  • PostgresUrlpostgresql
    Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
  • An owned version of a Row in a ResultSet. See ResultRowRef for documentation on data access.
  • A reference to a Row in a ResultSet. 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.
  • Sqlitesqlite
    A connector interface for the SQLite database
  • Wraps a connection url and exposes the parsing logic used by Quaint, including default values.
  • SslParamspostgresql
  • A representation of an SQL database transaction. If not commited, a transaction will be rolled back by default when dropped.

Enums

Traits

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.