mysql-native v3.0.0

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


Function Row.toStruct

Move the content of the row into a compatible struct

void toStruct(S) (
  ref S s
)
if (is(S == struct));

This method takes no account of NULL column values. If a column was NULL, the corresponding Variant value would be unchanged in those cases.

The method will throw if the type of the Variant is not implicitly convertible to the corresponding struct member.

Type Mappings

See the MySQL/D Type Mappings tables

Parameters

NameDescription
S A struct type.
s A ref instance of the type