Trait sqlx_core::database::Database[][src]

pub trait Database: 'static + Sized + Send + Debug + for<'r> HasValueRef<'r, Database = Self> + for<'q> HasArguments<'q, Database = Self> + for<'q> HasStatement<'q, Database = Self> {
    type Connection: Connection<Database = Self>;
    type TransactionManager: TransactionManager<Database = Self>;
    type Row: Row<Database = Self>;
    type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>;
    type Column: Column<Database = Self>;
    type TypeInfo: TypeInfo;
    type Value: Value<Database = Self> + 'static;
}
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<Database = Self>[src]

The concrete Connection implementation for this database.

type TransactionManager: TransactionManager<Database = Self>[src]

The concrete TransactionManager implementation for this database.

type Row: Row<Database = Self>[src]

The concrete Row implementation for this database.

type QueryResult: 'static + Sized + Send + Sync + Default + Extend<Self::QueryResult>[src]

The concrete QueryResult implementation for this database.

type Column: Column<Database = Self>[src]

The concrete Column implementation for this database.

type TypeInfo: TypeInfo[src]

The concrete TypeInfo implementation for this database.

type Value: Value<Database = Self> + 'static[src]

The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database.

Implementors