mysql-native v3.0.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function Row.opIndex

Simplify retrieval of a column value by index.

inout inout(std.variant.VariantN!(32L)) opIndex (
  ulong i
);

To check for null, use Variant's type property: row[index].type == typeid(typeof(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 Variant holding the column value.