ResultRange

An input range of Rows.

This is the entity that is returned by the Command methods execSQLSequence and execPreparedSequence

MySQL result sets can be up to 2^^64 rows. This interface allows for iteration through a result set of that size.

Constructors

this
this(Connection con, ResultSetHeaders rsh, string[] colNames)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

asAA
DBValue[string] asAA()

Get the current row as an associative array by column name

close
void close()

Explicitly clean up the MySQL resources and cancel pending results

popFront
void popFront()

Make the ResultRange behave as am input range - popFront()

Properties

colNameIndicies
const(size_t[string]) colNameIndicies [@property getter]

An AA to lookup a column's index by name

colNames
const(string)[] colNames [@property getter]

Get the names of all the columns

empty
bool empty [@property getter]

Make the ResultRange behave as an input range - empty

front
inout(Row) front [@property getter]

Make the ResultRange behave as an input range - front

isValid
bool isValid [@property getter]

Check whether the range can still we used, or has been invalidated

rowCount
ulong rowCount [@property getter]

Get the number of currently retrieved.

Meta