Trait sqlx::Database [−][src]
pub trait Database: 'static + Send + Debug + for<'r> HasValueRef<'r, Database = Self> + for<'q> HasArguments<'q, Database = Self> + for<'q> HasStatement<'q, Database = Self> { type Connection: Connection; type TransactionManager: TransactionManager; type Row: Row; type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>; type Column: Column; type TypeInfo: TypeInfo; type Value: 'static + Value; }
Expand description
A database driver.
This trait encapsulates a complete set of traits that implement a driver for a specific database (e.g., MySQL, PostgreSQL).
Associated Types
type Connection: Connection
[src]
type Connection: Connection
[src]The concrete Connection
implementation for this database.
type TransactionManager: TransactionManager
[src]
type TransactionManager: TransactionManager
[src]The concrete TransactionManager
implementation for this database.
Implementors
impl Database for Any
[src]
impl Database for Any
[src]type Connection = AnyConnection
type TransactionManager = AnyTransactionManager
type Row = AnyRow
type QueryResult = AnyQueryResult
type Column = AnyColumn
type TypeInfo = AnyTypeInfo
type Value = AnyValue
impl Database for Mssql
[src]
impl Database for Mssql
[src]type Connection = MssqlConnection
type TransactionManager = MssqlTransactionManager
type Row = MssqlRow
type QueryResult = MssqlQueryResult
type Column = MssqlColumn
type TypeInfo = MssqlTypeInfo
type Value = MssqlValue
impl Database for MySql
[src]
impl Database for MySql
[src]type Connection = MySqlConnection
type TransactionManager = MySqlTransactionManager
type Row = MySqlRow
type QueryResult = MySqlQueryResult
type Column = MySqlColumn
type TypeInfo = MySqlTypeInfo
type Value = MySqlValue
impl Database for Postgres
[src]
impl Database for Postgres
[src]type Connection = PgConnection
type TransactionManager = PgTransactionManager
type Row = PgRow
type QueryResult = PgQueryResult
type Column = PgColumn
type TypeInfo = PgTypeInfo
type Value = PgValue
impl Database for Sqlite
[src]
impl Database for Sqlite
[src]