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.

Implementations on Foreign Types§

Source§

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

Available on crate feature sqlite only.
Source§

type DB = Sqlite

Source§

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

Source§

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

Source§

type DB = DB

Source§

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

Implementors§

Source§

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

Source§

type DB = DB