Function Command.bindParameter

Bind a D variable to a prepared statement parameter.

In this implementation, binding comprises setting a value into the appropriate element of an array of Variants which represent the parameters, and setting any required specializations.

To bind to some D variable, we set the corrsponding variant with its address, so there is no need to rebind between calls to execPreparedXXX.

Prototype

void bindParameter(T)(
  ref T val,
  size_t pIndex,
  ParameterSpecialization psn = PSN(0, SQLType.INFER_FROM_D_TYPE, 0, null)
);

Authors

Copyright

License