[−][src]Trait sqlx::postgres::PgQueryAs
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>>,
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>>,
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>>,
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>>,
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.Implementors
impl<'q, O> PgQueryAs<'q, O> for QueryAs<'q, Postgres, O>
[src]
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>>,
[src]
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_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>>,
[src]
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>>,
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>>,
[src]
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_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>>,
[src]
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>>,