[][src]Trait sqlx::executor::RefExecutor

pub trait RefExecutor<'e> {
    type Database: Database;
    fn fetch_by_ref<'q, E>(
        self,
        query: E
    ) -> <Self::Database as HasCursor<'e, 'q>>::Cursor
    where
        E: Execute<'q, Self::Database>
; }

Associated Types

Loading content...

Required methods

fn fetch_by_ref<'q, E>(
    self,
    query: E
) -> <Self::Database as HasCursor<'e, 'q>>::Cursor where
    E: Execute<'q, Self::Database>, 

Loading content...

Implementations on Foreign Types

impl<'c, T> RefExecutor<'c> for &'c mut T where
    T: Copy + RefExecutor<'c>, 
[src]

type Database = <T as RefExecutor<'c>>::Database

Loading content...

Implementors

impl<'c> RefExecutor<'c> for &'c mut PgListener[src]

type Database = Postgres

impl<'c> RefExecutor<'c> for &'c mut MySqlConnection[src]

type Database = MySql

impl<'c> RefExecutor<'c> for &'c mut PgConnection[src]

type Database = Postgres

impl<'c, C, DB> RefExecutor<'c> for &'c mut PoolConnection<C> where
    C: Connect<Database = DB>,
    DB: Database<Connection = C, Database = DB> + for<'q, 'c2> HasCursor<'c2, 'q>,
    &'c mut C: RefExecutor<'c>,
    <&'c mut C as RefExecutor<'c>>::Database == DB, 
[src]

type Database = DB

impl<'e> RefExecutor<'e> for &'e mut SqliteConnection[src]

type Database = Sqlite

impl<'e, DB, C> RefExecutor<'e> for &'e mut Transaction<C> where
    C: Connection<Database = DB>,
    DB: Database
[src]

type Database = DB

impl<'p, C, DB> RefExecutor<'p> for &'p Pool<C> where
    C: Connect<Database = DB>,
    DB: Database<Connection = C> + for<'c, 'q> HasCursor<'c, 'q>,
    &'c mut C: for<'c> RefExecutor<'c>, 
[src]

type Database = DB

Loading content...