ResultSequence

An input range of Row.

This is returned by the mysql.commands.query and mysql.prepared.PreparedImpl.query functions.

The rows are downloaded one-at-a-time, as you iterate the range. This allows for low memory usage, and quick access to the results as they are downloaded. This is especially ideal in case your query results in a large number of rows.

However, because of that, this ResultRange cannot offer random access or a length member. If you need random access, then just like any other range, you can simply convert this range to an array via std.array.array().

More...
deprecated
alias ResultSequence = ResultRange

Detailed Description

Type Mappings

$(TYPE_MAPPINGS)

Examples

ResultRange oneAtATime = myConnection.query("SELECT * from myTable");
Row[]       allAtOnce  = myConnection.query("SELECT * from myTable").array;

Meta