Struct UnsafePrepared
Unsafe wrapper for SafePrepared.
struct UnsafePrepared
;
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.
See the Safe Migration document for more details.
Properties
Name | Type | Description |
---|---|---|
columnSpecials [get, set]
|
ColumnSpecialization[] | forward all the methods from the safe struct. See SafePrepared for
details.
|
lastInsertID [get]
|
ulong | forward all the methods from the safe struct. See SafePrepared for
details.
|
numArgs [get]
|
ushort | forward all the methods from the safe struct. See SafePrepared for
details.
|
preparedFieldDescriptions [get]
|
FieldDescription[] | forward all the methods from the safe struct. See SafePrepared for
details.
|
preparedParamDescriptions [get]
|
ParamDescription[] | forward all the methods from the safe struct. See SafePrepared for
details.
|
sql [get]
|
const(char)[] | forward all the methods from the safe struct. See SafePrepared for
details.
|
Methods
Name | Description |
---|---|
getArg
(index)
|
Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work. |
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. |
setArg
(index, val, psn)
|
Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work. |
setArgs
(args)
|
Redefine all functions that deal with MySQLVal to deal with Variant instead. Please see SafePrepared for details on how the methods work. |
setNullArg
(index)
|
forward all the methods from the safe struct. See SafePrepared for
details.
|