Trait sqlx::Database[][src]

pub trait Database: 'static + for<'r> HasValueRef<'r, Database = Self> + for<'q> HasArguments<'q, Database = Self> + for<'q> HasStatement<'q, Database = Self> + Send + Debug {
    type Connection: Connection;
    type TransactionManager: TransactionManager;
    type Row: Row;
    type QueryResult: 'static + Default + Send + Sized + Sync + Extend<Self::QueryResult>;
    type Column: Column;
    type TypeInfo: TypeInfo;
    type Value: 'static + Value;
}

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]

The concrete Connection implementation for this database.

type TransactionManager: TransactionManager[src]

The concrete TransactionManager implementation for this database.

type Row: Row[src]

The concrete Row implementation for this database.

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

The concrete QueryResult implementation for this database.

type Column: Column[src]

The concrete Column implementation for this database.

type TypeInfo: TypeInfo[src]

The concrete TypeInfo implementation for this database.

type Value: 'static + Value[src]

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

Loading content...

Implementors

Loading content...