DormTransaction.rawSQL

This function executes a raw SQL statement.

Iterate over the result using foreach.

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.

struct DormTransaction
@safe return pure
rawSQL
(
scope return const(char)[] queryString
,
scope return ffi.FFIValue[] bindParams = null
)

Parameters

queryString const(char)[]

SQL statement to execute.

bindParams ffi.FFIValue[]

Parameters to fill into placeholders of queryString.

See Also

DormDB.rawSQL

Meta