Trait Database

Source
pub trait Database {
    // Required method
    fn query<'life0, 'async_trait>(
        &'life0 self,
        context: QueryContext,
        query: String,
    ) -> Pin<Box<dyn Future<Output = Box<dyn Display>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Query executor.

Runner will call EnvController::start to create database to execute query. The context parameter is a key-value pair map that usually comes from interceptor or config file.

Required Methods§

Source

fn query<'life0, 'async_trait>( &'life0 self, context: QueryContext, query: String, ) -> Pin<Box<dyn Future<Output = Box<dyn Display>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§