ResultRange

An input range interface to access the results of the execution of a statement.

The elements of the range are Row structs. A Row is just a view of the current row when iterating the results of a ResultRange. It becomes invalid as soon as ResultRange.popFront() is called (it contains undefined data afterwards). Use RowCache to store the content of rows past the execution of the statement.

Instances of this struct are typically returned by Database.execute() or Statement.execute().

Members

Functions

empty
bool empty()
front
Row front()

Range primitives.

oneValue
auto oneValue()

Gets only the first value of the first row returned by the execution of the statement.

popFront
void popFront()

Range primitives.

Meta