#include <cursor.hxx>
Inheritance diagram for pqxx::icursorstream:
Public Member Functions | |
icursorstream (transaction_base &context, const PGSTD::string &query, const PGSTD::string &basename, size_type stride=1) | |
Set up a read-only, forward-only cursor. | |
icursorstream & | get (result &res) |
Read new value into given result object; same as operator >>. | |
icursorstream & | operator>> (result &res) |
Read new value into given result object; same as get(result &). | |
icursorstream & | ignore (PGSTD::streamsize n=1) |
Move given number of rows forward (ignoring stride) without reading data. | |
void | set_stride (size_type stride) |
Change stride, i.e. the number of rows to fetch per read operation. |
Data is fetched from the cursor as a sequence of result objects. Each of these will contain the number of rows defined as the stream's stride, except of course the last block of data which may contain fewer rows.
|
Set up a read-only, forward-only cursor. Roughly equivalent to a C++ Standard Library istream, this cursor type supports only two operations: reading a block of rows while moving forward, and moving forward without reading any data.
|
|
Read new value into given result object; same as operator >>. The result set may continue any number of rows from zero to the chosen stride, inclusive. An empty result will only be returned if there are no more rows to retrieve. |
|
Move given number of rows forward (ignoring stride) without reading data.
|
|
Read new value into given result object; same as get(result &). The result set may continue any number of rows from zero to the chosen stride, inclusive. An empty result will only be returned if there are no more rows to retrieve. |
|
Change stride, i.e. the number of rows to fetch per read operation.
|