#include <userver/storages/mongo/cursor.hpp>
Interface for MongoDB query cursors.
Definition at line 19 of file cursor.hpp.
Classes | |
class | Iterator |
Public Member Functions | |
Cursor (std::unique_ptr< impl::CursorImpl > &&) | |
Cursor (Cursor &&) noexcept | |
Cursor & | operator= (Cursor &&) noexcept |
bool | HasMore () const |
operator bool () const | |
std::uint32_t | GetBatchSize () const |
Retrieve the cursor batch size; returns zero if the cursor uses the server-defined maximum batch size. | |
void | SetBatchSize (std::uint32_t) |
Set the cursor batch size; set to zero to force the cursor to use the server-defined maximum batch size. | |
Iterator | begin () |
Iterator | end () |
|
inlineexplicit |
Definition at line 60 of file cursor.hpp.