AcidRepositoryAccess

Trait AcidRepositoryAccess 

Source
pub trait AcidRepositoryAccess<C>: Atomic {
    // Required method
    fn connect<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<AtomicConnection<'_, C>, DatabaseError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Used for creating transactions in repositories. Implementations can be found in the hextacy_derive crate. Structs implementing this trait should have a client and transaction field on them for establishing and storing transactions, respectively.

Required Methods§

Source

fn connect<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<AtomicConnection<'_, C>, DatabaseError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§