- getArg
Variant getArg(size_t index)
Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work.
- safe
SafePrepared safe()
Allow conversion to a SafePrepared. UnsafePrepared with
UnsafeParameterSpecialization items that have chunk delegates are not
allowed to convert, because the delegates are possibly unsafe.
- safeForExec
SafePrepared safeForExec()
Undocumented in source. Be warned that the author may not have intended to support it.
- setArg
void setArg(size_t index, T val, UnsafeParameterSpecialization psn)
void setArg(size_t index, Variant val, UnsafeParameterSpecialization psn)
- setArgs
void setArgs(T args)
void setArgs(Variant[] args, UnsafeParameterSpecialization[] psnList)
Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work.
- setNullArg
deprecated void setNullArg(size_t index)
- columnSpecials
ColumnSpecialization[] columnSpecials [@property setter]
ColumnSpecialization[] columnSpecials [@property getter]
- lastInsertID
ulong lastInsertID [@property getter]
- numArgs
ushort numArgs [@property getter]
- preparedFieldDescriptions
FieldDescription[] preparedFieldDescriptions [@property getter]
- preparedParamDescriptions
ParamDescription[] preparedParamDescriptions [@property getter]
- sql
const(char)[] sql [@property getter]
forward all the methods from the safe struct. See SafePrepared for
details.
Unsafe wrapper for SafePrepared.
This wrapper contains a SafePrepared, and forwards common functionality to that type. It overrides the setting and fetching of arguments, converting them to and from Variant for backwards compatibility.
It also sets up UnsafeParameterSpecialization items for the parameters. Note that these are simply cast to SafeParameterSpecialization. There are runtime guards in place to ensure a SafeParameterSpecialization with an unsafe delegate is not accessible as a safe delegate.
$(SAFE_MIGRATION)