Database

Trait Database 

pub trait Database:
    'static
    + Sized
    + Send
    + Debug {
    type Connection: Connection<Database = Self>;
    type TransactionManager: TransactionManager<Database = Self>;
    type Row: Row<Database = Self>;
    type Query<'a>: Query<Database = Self>;
    type Column: Column<Database = Self>;
    type TypeInfo: TypeInfo;

    const NAME: &'static str;
}
Expand description

A database driver.

Required Associated Constants§

const NAME: &'static str

Required Associated Types§

type Connection: Connection<Database = Self>

The concrete Connection implementation for this database.

type TransactionManager: TransactionManager<Database = Self>

The concrete TransactionManager implementation for this database.

type Row: Row<Database = Self>

The concrete Row implementation for this database.

type Query<'a>: Query<Database = Self>

The concrete Query implementation for this database.

type Column: Column<Database = Self>

The concrete Column implementation for this database.

type TypeInfo: TypeInfo

The concrete TypeInfo implementation for this database.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§