pub async fn query_one<C: GenericClient + Sync>(
client: &C,
query: Sql,
params: &[&(dyn ToSql + Sync)],
) -> Result<Row, PostgresError>Expand description
Runs a query and returns exactly one row.
pub async fn query_one<C: GenericClient + Sync>(
client: &C,
query: Sql,
params: &[&(dyn ToSql + Sync)],
) -> Result<Row, PostgresError>Runs a query and returns exactly one row.