QueryExecutor

Trait QueryExecutor 

Source
pub trait QueryExecutor: Send + Sync {
    // Required methods
    fn execute_query<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        query: &'life1 str,
        params: &'life2 [&'life3 dyn QueryParam],
        context: &'life4 QueryContext,
    ) -> Pin<Box<dyn Future<Output = DatabaseResult<QueryResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn execute_query_with_options<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        query: &'life1 str,
        params: &'life2 [&'life3 dyn QueryParam],
        options: &'life4 QueryOptions,
        context: &'life5 QueryContext,
    ) -> Pin<Box<dyn Future<Output = DatabaseResult<QueryResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
}

Required Methods§

Source

fn execute_query<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, query: &'life1 str, params: &'life2 [&'life3 dyn QueryParam], context: &'life4 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn execute_query_with_options<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, query: &'life1 str, params: &'life2 [&'life3 dyn QueryParam], options: &'life4 QueryOptions, context: &'life5 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Implementors§