[][src]Trait sqlx::postgres::PgQueryAs

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

Required methods

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

This is supported on feature="postgres" only.

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

This is supported on feature="postgres" only.

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

This is supported on feature="postgres" only.

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

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

Implementors

impl<'q, O> PgQueryAs<'q, O> for QueryAs<'q, Postgres, O>[src]

Loading content...