Skip to main content

TransactionExecutor

Trait TransactionExecutor 

Source
pub trait TransactionExecutor: DataServiceExecutor {
    type Tx<'a>: QueryExecutor<Error = Self::Error> + MutationExecutor<Error = Self::Error> + Transaction<Error = Self::Error>
       where Self: 'a;

    // Required method
    fn begin(
        &self,
    ) -> impl Future<Output = Result<Self::Tx<'_>, Self::Error>> + Send;
}

Required Associated Types§

Source

type Tx<'a>: QueryExecutor<Error = Self::Error> + MutationExecutor<Error = Self::Error> + Transaction<Error = Self::Error> where Self: 'a

Required Methods§

Source

fn begin( &self, ) -> impl Future<Output = Result<Self::Tx<'_>, Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§