[][src]Trait sqlx::Database

pub trait Database: 'static + for<'r> HasValueRef<'r, Database = Self> + for<'q> HasArguments<'q, Database = Self> + for<'q> HasStatement<'q, Database = Self> + Send + Debug where
    <Self::Connection as Connection>::Database == Self,
    <Self::TransactionManager as TransactionManager>::Database == Self,
    <Self::Row as Row>::Database == Self,
    <Self::Done as Done>::Database == Self,
    <Self::Column as Column>::Database == Self,
    <Self::Value as Value>::Database == Self, 
{ type Connection: Connection; type TransactionManager: TransactionManager; type Row: Row; type Done: Done; 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

The concrete Connection implementation for this database.

type TransactionManager: TransactionManager

The concrete TransactionManager implementation for this database.

type Row: Row

The concrete Row implementation for this database.

type Done: Done

The concrete Done implementation for this database.

type Column: Column

The concrete Column implementation for this database.

type TypeInfo: TypeInfo

The concrete TypeInfo implementation for this database.

type Value: 'static + Value

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...