Skip to main content

IntoExecutor

Trait IntoExecutor 

Source
pub trait IntoExecutor<'a>: Send + 'a {
    type DB: SqlDialect;

    // Required method
    fn into_executor(self) -> Executor<'a, Self::DB>;
}
Expand description

A trait for types that can be converted into an Executor.

Required Associated Types§

Source

type DB: SqlDialect

The database dialect associated with this executor.

Required Methods§

Source

fn into_executor(self) -> Executor<'a, Self::DB>

Converts the type into an Executor.

Implementors§

Source§

impl<'a> IntoExecutor<'a> for &'a mut PgConnection

Available on crate feature postgres only.
Source§

impl<'a> IntoExecutor<'a> for &'a mut SqliteConnection

Available on crate feature sqlite only.
Source§

impl<'a, DB> IntoExecutor<'a> for &'a Pool<DB>
where DB: SqlDialect,

Source§

type DB = DB

Source§

impl<'a, DB> IntoExecutor<'a> for Executor<'a, DB>
where DB: SqlDialect,

Source§

type DB = DB