[][src]Trait sqlx::Database

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

A database driver.

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

Associated Types

type Connection: Connection

The concrete Connection implementation for this database.

type Arguments: Arguments

The concrete Arguments implementation for this database.

type Row: Row

The concrete Row implementation for this database.

type TypeInfo: TypeInfo

The concrete TypeInfo implementation for this database.

type TableId: Clone + Display

The Rust type of table identifiers for this database.

Loading content...

Implementors

Loading content...