Trait HasStatement

Source
pub trait HasStatement<'q> {
    type Database: Database;
    type Statement: Statement<'q, Database = Self::Database>;
}
Expand description

Associate Database with a Statement of a generic lifetime.


The upcoming Rust feature, Generic Associated Types, should obviate the need for this trait.

Required Associated Types§

Source

type Database: Database

Source

type Statement: Statement<'q, Database = Self::Database>

The concrete Statement implementation for this database.

Implementors§

Source§

impl<'q> HasStatement<'q> for Any

Source§

impl<'q> HasStatement<'q> for Mssql

Available on crate feature mssql only.
Source§

impl<'q> HasStatement<'q> for MySql

Available on crate feature mysql only.
Source§

impl<'q> HasStatement<'q> for Postgres

Available on crate feature postgres only.
Source§

impl<'q> HasStatement<'q> for Sqlite

Available on crate feature sqlite only.