Execute a sql-query against the database. Only Select statements are supported.
Use the SqlQuery for dynamic values:
Select all user records with the ident of 'admin'.
let ident = new;
let query = new .model .check;
let records = exec_sql .await?;
assert!;
Select limited records example:
Select a full record with the first *
operator. The second *
operator selects over all records types. Limit to 5 records with the limit operator.
let records = exec_sql .await?;
assert_eq!;
assert!;
Select record typ with offset example:
Select only right records. Limit to 5 records with the limit operator.
let records = exec_sql .await?;
assert!;
Select columns from user example:
let entries = exec_sql .await?;
assert!;
assert!;
Count amount of records example:
let entries = exec_sql .await?;
assert_eq!;