[][src]Trait sqlx_core::Database

pub trait Database: 'static {
    type Connection: Connection<Database = Self>;
    type Arguments: Arguments<Database = Self>;
    type Row: Row<Database = Self>;
    type TypeInfo: TypeInfo;
    type TableId: Display + Clone;
}

A database driver.

This trait encapsulates a complete driver implementation to a specific database (e.g., MySQL, Postgres).

Associated Types

type Connection: Connection<Database = Self>

The concrete Connection implementation for this database.

type Arguments: Arguments<Database = Self>

The concrete Arguments implementation for this database.

type Row: Row<Database = Self>

The concrete Row implementation for this database.

type TypeInfo: TypeInfo

The concrete TypeInfo implementation for this database.

type TableId: Display + Clone

The Rust type of table identifiers for this database.

Loading content...

Implementors

Loading content...