Function sqlx_core::query_as::query_as_with

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

Execute a single SQL query, with the given arguments as a prepared statement (transparently cached). Maps rows to Rust types using FromRow.

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

For details about type mapping from FromRow, see query_as().