Function SafeRow.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 MySQLVal value would be unchanged in those cases.

The method will throw if the type of the MySQLVal 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