#include <userver/storages/sqlite/cursor_result_set.hpp>
A wrapper for read-only cursor.
You should always retrieve it from storages::sqlite::Client
for correct behavior.
Definition at line 16 of file cursor_result_set.hpp.
Public Member Functions | |
CursorResultSet (ResultSet &&result_set, size_t batch_size) | |
CursorResultSet (const CursorResultSet &other)=delete | |
CursorResultSet (CursorResultSet &&other) noexcept | |
template<typename RowCallback> | |
void | ForEach (RowCallback &&row_callback) && |
Fetches all the rows from cursor and for each new row executes row_callback. | |
|
explicit |
Definition at line 38 of file cursor_result_set.hpp.
void storages::sqlite::CursorResultSet< T >::ForEach | ( | RowCallback && | row_callback | ) | && |
Fetches all the rows from cursor and for each new row executes row_callback.
Usable when the result set is expected to be big enough to put too much memory pressure if fetched as a whole.
Definition at line 49 of file cursor_result_set.hpp.