Statements are executed as prepared statements, if possible.
To define placeholders, use ? in SQLite and MySQL and $1, $n in Postgres.
The corresponding parameters are bound in order to the query.
The number of placeholder must match with the number of provided bind
parameters.
To include the statement in a transaction specify transaction as a valid
Transaction. As the Transaction needs to be mutable, it is important to not
use the Transaction anywhere else until the callback is finished.
If the statement should be executed **not** in a Transaction, specify a null
pointer.
This function executes a raw SQL statement.
Statements are executed as prepared statements, if possible.
To define placeholders, use ? in SQLite and MySQL and $1, $n in Postgres. The corresponding parameters are bound in order to the query.
The number of placeholder must match with the number of provided bind parameters.
To include the statement in a transaction specify transaction as a valid Transaction. As the Transaction needs to be mutable, it is important to not use the Transaction anywhere else until the callback is finished.
If the statement should be executed **not** in a Transaction, specify a null pointer.