Function sqlx_core::query_scalar::query_scalar_with

source ยท
pub fn query_scalar_with<'q, DB, O, A>(
    sql: &'q str,
    arguments: A,
) -> QueryScalar<'q, DB, O, A>
where DB: Database, A: IntoArguments<'q, DB>, (O,): for<'r> FromRow<'r, DB::Row>,
Expand description

Execute a SQL query as a prepared statement (transparently cached), with the given arguments, and extract the first column of each row.

See query_scalar() for details.

For details about prepared statements and allowed SQL syntax, see query().