Skip to main content

SqlForgeQueryExecute

Trait SqlForgeQueryExecute 

Source
pub trait SqlForgeQueryExecute {
    type Db: Database;

    // Required method
    fn execute<'e, E>(
        self,
        executor: E,
    ) -> impl Future<Output = Result<<Self::Db as Database>::QueryResult, Error>> + Send + 'e
       where Self: Sized + 'e,
             E: Executor<'e, Database = Self::Db> + Send + 'e,
             Self::Db: 'e;
}

Required Associated Types§

Required Methods§

Source

fn execute<'e, E>( self, executor: E, ) -> impl Future<Output = Result<<Self::Db as Database>::QueryResult, Error>> + Send + 'e
where Self: Sized + 'e, E: Executor<'e, Database = Self::Db> + Send + 'e, Self::Db: 'e,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§