Trait ExecutorExt

Source
pub trait ExecutorExt<'c, 'q, 'async_trait, T>: Executor<'c>
where T: 'async_trait + From<<Self::Database as Database>::Row>, Self: Sync + 'async_trait, 'c: 'async_trait, 'q: 'async_trait,
{ // Provided methods fn execute(self, sql: &'q str) -> BoxFuture<'async_trait, Result<(), Error>> { ... } fn fetch_all( self, sql: &'q str, ) -> BoxFuture<'async_trait, Result<Vec<T>, Error>> { ... } fn fetch_one( self, sql: &'q str, ) -> BoxFuture<'async_trait, Result<T, Error>> { ... } fn fetch_optional( self, sql: &'q str, ) -> BoxFuture<'async_trait, Result<Option<T>, Error>> { ... } }

Provided Methods§

Source

fn execute(self, sql: &'q str) -> BoxFuture<'async_trait, Result<(), Error>>

Source

fn fetch_all( self, sql: &'q str, ) -> BoxFuture<'async_trait, Result<Vec<T>, Error>>

Source

fn fetch_one(self, sql: &'q str) -> BoxFuture<'async_trait, Result<T, Error>>

Source

fn fetch_optional( self, sql: &'q str, ) -> BoxFuture<'async_trait, Result<Option<T>, Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§