Trait sqlx::database::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§