Skip to main content

SqlAccess

Trait SqlAccess 

Source
pub trait SqlAccess:
    Send
    + Sync
    + 'static {
    // Required methods
    fn reader<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlReader>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn writer<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlWriter>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn begin_tx<'life0, 'async_trait>(
        &'life0 self,
        options: SqlTxOptions,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlTransaction>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Base SQL access capability.

Required Methods§

Source

fn reader<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlReader>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn writer<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlWriter>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn begin_tx<'life0, 'async_trait>( &'life0 self, options: SqlTxOptions, ) -> Pin<Box<dyn Future<Output = StorageResult<Box<dyn SqlTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§