Struct PreparedImpl

This is the internal implementation of Prepared. It is not intended to be used directly, as Prepared wraps a PreparedImpl with RefCounted, and offers access to the public PreparedImpl members via "alias this".

Constructors

Name Description
this Submit an SQL command to the server to be compiled into a prepared statement.

Properties

Name Type Description
numArgs [get] ushort Gets the number of arguments this prepared statement expects to be passed in.
preparedFieldDescriptions [get] FieldDescription[] Gets the prepared header's field descriptions.
preparedParamDescriptions [get] ParamDescription[] Gets the prepared header's param descriptions.

Methods

Name Description
exec Execute a prepared command, such as INSERT/UPDATE/CREATE/etc.
getArg Prepared statement parameter getter.
opAssign
query Execute a prepared SQL SELECT command where you want to deal with the result set one row at a time.
queryRow Execute a prepared SQL SELECT command where you only want the first Row (if any).
queryRowTuple Execute a prepared SQL SELECT command where you only want the first Row, and place result values into a set of D variables.
querySet Execute a prepared SQL SELECT command where you expect the entire result set all at once.
queryValue Execute a prepared SQL SELECT command and returns a single value, the first column of the first row received.
release Release a prepared statement.
setArg Prepared statement parameter setter.
setArg
setArgs Bind a tuple of D variables to the parameters of a prepared statement.
setArgs Bind a Variant[] as the parameters of a prepared statement.
setNullArg Sets a prepared statement parameter to NULL.
sql Gets the SQL command for this prepared statement

Aliases

Name Description
queryResult Execute a prepared SQL SELECT command where you expect the entire result set all at once.
querySequence Execute a prepared SQL SELECT command where you want to deal with the result set one row at a time.
queryTuple Execute a prepared SQL SELECT command where you only want the first Row, and place result values into a set of D variables.

Authors

Copyright

License