Skip to main content

Module query

Module query 

Source

Structs§

Sql
A composable SQL query string.

Enums§

SqlFormatError
Errors produced by Sql::format.

Functions§

batch_execute
Runs one or more SQL statements with no returned rows.
execute
Runs a query and returns the number of affected rows.
execute_prepared
Runs a prepared query and returns the number of affected rows.
query
Runs a query and returns all resulting rows.
query_one
Runs a query and returns exactly one row.
query_one_prepared
Runs a prepared query and returns exactly one row.
query_opt
Runs a query and returns at most one row.
query_opt_prepared
Runs a prepared query and returns at most one row.
query_prepared
Runs a prepared query and returns all resulting rows.
simple_query
Runs a simple query and returns all protocol messages.
simple_query_opt
Runs the given query using the client and expects at most a single row to be returned.