userver: storages::mongo::Cursor Class Reference
Loading...
Searching...
No Matches
storages::mongo::Cursor Class Reference

#include <userver/storages/mongo/cursor.hpp>

Detailed Description

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 ()

Member Function Documentation

◆ operator bool()

storages::mongo::Cursor::operator bool ( ) const
inlineexplicit

Definition at line 61 of file cursor.hpp.


The documentation for this class was generated from the following file: