Function sqlx_core::query_scalar::query_scalar
source · pub fn query_scalar<'q, DB, O>(
sql: &'q str
) -> QueryScalar<'q, DB, O, <DB as HasArguments<'q>>::Arguments>where
DB: Database,
(O,): for<'r> FromRow<'r, DB::Row>,
Expand description
Make a SQL query that is mapped to a single concrete type
using FromRow
.