pub trait DbClient: Send + Sync {
    // Required methods
    fn sql_query<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 RpcContext,
        req: &'life2 SqlQueryRequest
    ) -> Pin<Box<dyn Future<Output = Result<SqlQueryResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn write<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 RpcContext,
        req: &'life2 WriteRequest
    ) -> Pin<Box<dyn Future<Output = Result<WriteResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn sql_query<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 RpcContext, req: &'life2 SqlQueryRequest ) -> Pin<Box<dyn Future<Output = Result<SqlQueryResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn write<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 RpcContext, req: &'life2 WriteRequest ) -> Pin<Box<dyn Future<Output = Result<WriteResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§