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].kind == MySQLVal.Kind.Null or use a direct comparison to null: row[index] == null

Type Mappings

See the MySQL/D Type Mappings tables

Parameters

NameDescription
i the zero based index of the column whose value is required.

Returns

A MySQLVal holding the column value.