[][src]Trait sqlx::mysql::MySqlQueryAs

pub trait MySqlQueryAs<'q, O> {
    fn fetch<'e, E>(
        self,
        executor: E
    ) -> Pin<Box<dyn Stream<Item = Result<O, Error<MySql>>> + 'e + Send>>
    where
        'q: 'e,
        E: 'e + Send + RefExecutor<'e, Database = MySql>,
        O: 'e + Send + Unpin + FromRow<'c, MySqlRow<'c>>
;
fn fetch_all<'e, E>(
        self,
        executor: E
    ) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error<MySql>>> + 'e + Send>>
    where
        'q: 'e,
        E: 'e + Send + RefExecutor<'e, Database = MySql>,
        O: 'e + Send + FromRow<'c, MySqlRow<'c>>
;
fn fetch_one<'e, E>(
        self,
        executor: E
    ) -> Pin<Box<dyn Future<Output = Result<O, Error<MySql>>> + 'e + Send>>
    where
        'q: 'e,
        E: 'e + Send + RefExecutor<'e, Database = MySql>,
        O: 'e + Send + FromRow<'c, MySqlRow<'c>>
;
fn fetch_optional<'e, E>(
        self,
        executor: E
    ) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error<MySql>>> + 'e + Send>>
    where
        'q: 'e,
        E: 'e + Send + RefExecutor<'e, Database = MySql>,
        O: 'e + Send + FromRow<'c, MySqlRow<'c>>
; }
This is supported on feature="mysql" only.

Required methods

fn fetch<'e, E>(
    self,
    executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error<MySql>>> + 'e + Send>> where
    'q: 'e,
    E: 'e + Send + RefExecutor<'e, Database = MySql>,
    O: 'e + Send + Unpin + FromRow<'c, MySqlRow<'c>>, 

This is supported on feature="mysql" only.

fn fetch_all<'e, E>(
    self,
    executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error<MySql>>> + 'e + Send>> where
    'q: 'e,
    E: 'e + Send + RefExecutor<'e, Database = MySql>,
    O: 'e + Send + FromRow<'c, MySqlRow<'c>>, 

This is supported on feature="mysql" only.

fn fetch_one<'e, E>(
    self,
    executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error<MySql>>> + 'e + Send>> where
    'q: 'e,
    E: 'e + Send + RefExecutor<'e, Database = MySql>,
    O: 'e + Send + FromRow<'c, MySqlRow<'c>>, 

This is supported on feature="mysql" only.

fn fetch_optional<'e, E>(
    self,
    executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error<MySql>>> + 'e + Send>> where
    'q: 'e,
    E: 'e + Send + RefExecutor<'e, Database = MySql>,
    O: 'e + Send + FromRow<'c, MySqlRow<'c>>, 

This is supported on feature="mysql" only.
Loading content...

Implementors

impl<'q, O> MySqlQueryAs<'q, O> for QueryAs<'q, MySql, O>[src]

Loading content...