Trait typed_sql::conn::Connection[][src]

pub trait Connection {
    type Row: Row;
    type Error: From<<Self::Row as Row>::Error>;
    #[must_use]
    fn query<'life0, 'async_trait>(
        &'life0 mut self,
        sql: impl ToSql + 'async_trait
    ) -> Pin<Box<dyn Future<Output = Result<Self::Row, Self::Error>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type Row: Row[src]

type Error: From<<Self::Row as Row>::Error>[src]

Required methods

#[must_use]
fn query<'life0, 'async_trait>(
    &'life0 mut self,
    sql: impl ToSql + 'async_trait
) -> Pin<Box<dyn Future<Output = Result<Self::Row, Self::Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Implementors