Function PreparedImpl.queryRow

Execute a prepared SQL SELECT command where you only want the first Row (if any).

std.typecons.Nullable!(mysql.result.Row) queryRow (
  ColumnSpecialization[] csa = null
);

If the SQL command does not produce a result set (such as INSERT/CREATE/etc), then MySQLNoResultRecievedException will be thrown. Use exec instead for such commands.

If there are long data items among the expected result columns you can use the csa param to specify that they are to be subject to chunked transfer via a delegate.

Parameters

NameDescription
csa An optional array of ColumnSpecialization structs.

Returns

Nullable!Row: This will be null (check via Nullable.isNull) if the query resulted in an empty result set.