[][src]Trait ena::sql::Query

pub trait Query<S, R> {
#[must_use]    fn first<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        statement: YotsubaStatement,
        id: &'life1 QueryIdentifier,
        statements: &'life2 StatementStore<S>,
        item: Option<&'life3 [u8]>,
        no: Option<u64>
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_list<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        statement: YotsubaStatement,
        id: &'life1 QueryIdentifier,
        statements: &'life2 StatementStore<S>,
        item: Option<&'life3 [u8]>,
        no: Option<u64>
    ) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_rows<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        statement: YotsubaStatement,
        id: &'life1 QueryIdentifier,
        statements: &'life2 StatementStore<S>,
        item: Option<&'life3 [u8]>,
        no: Option<u64>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<R>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn create_statements<'life0, 'async_trait>(
        &'life0 self,
        engine: Database,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard
    ) -> Pin<Box<dyn Future<Output = StatementStore<S>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

New SQL executors

See YotsubaStatement

Required methods

#[must_use]fn first<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    statement: YotsubaStatement,
    id: &'life1 QueryIdentifier,
    statements: &'life2 StatementStore<S>,
    item: Option<&'life3 [u8]>,
    no: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

For the rest of YotsubaStatement

#[must_use]fn get_list<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    statement: YotsubaStatement,
    id: &'life1 QueryIdentifier,
    statements: &'life2 StatementStore<S>,
    item: Option<&'life3 [u8]>,
    no: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn get_rows<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    statement: YotsubaStatement,
    id: &'life1 QueryIdentifier,
    statements: &'life2 StatementStore<S>,
    item: Option<&'life3 [u8]>,
    no: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<Vec<R>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn create_statements<'life0, 'async_trait>(
    &'life0 self,
    engine: Database,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard
) -> Pin<Box<dyn Future<Output = StatementStore<S>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementations on Foreign Types

impl Query<Stmt<Conn>, Row> for Pool[src]

impl Query<Statement, Row> for Client[src]

For the rest of YotsubaStatement

Loading content...

Implementors

Loading content...