Function SafeRow.opIndex
Simplify retrieval of a column value by index.
ref inout inout(taggedalgebraic .taggedalgebraic .TaggedAlgebraic!(mysql.types._MYTYPE)) opIndex
(
ulong i
) @safe;
To check for null, use MySQLVal's kind
property:
row[index]
or use a direct comparison to null:
row[index] == null
Type Mappings
See the MySQL/D Type Mappings tables
Parameters
Name | Description |
---|---|
i | the zero based index of the column whose value is required. |
Returns
A MySQLVal holding the column value.