20 #include <bsoncxx/document/view_or_value.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <mongocxx/cursor.hpp>
24 #include <mongocxx/hint.hpp>
25 #include <mongocxx/read_preference.hpp>
27 #include <mongocxx/config/prelude.hpp>
30 MONGOCXX_INLINE_NAMESPACE_BEGIN
47 void allow_partial_results(
bool allow_partial);
56 const stdx::optional<bool>& allow_partial_results()
const;
66 void batch_size(std::int32_t batch_size);
75 const stdx::optional<std::int32_t>& batch_size()
const;
95 const stdx::optional<bsoncxx::string::view_or_value>& comment()
const;
105 void cursor_type(cursor::type cursor_type);
114 const stdx::optional<cursor::type>& cursor_type()
const;
134 const stdx::optional<class hint>& hint()
const;
142 void limit(std::int32_t limit);
149 const stdx::optional<std::int32_t>& limit()
const;
164 void max_await_time(std::chrono::milliseconds max_await_time);
172 const stdx::optional<std::chrono::milliseconds>& max_await_time()
const;
182 void max_time(std::chrono::milliseconds max_time);
191 const stdx::optional<std::chrono::milliseconds>& max_time()
const;
208 const stdx::optional<bsoncxx::document::view_or_value>& modifiers()
const;
219 void no_cursor_timeout(
bool no_cursor_timeout);
228 const stdx::optional<bool>& no_cursor_timeout()
const;
247 const stdx::optional<bsoncxx::document::view_or_value>& projection()
const;
267 const stdx::optional<class read_preference>& read_preference()
const;
277 void skip(std::int32_t skip);
286 const stdx::optional<std::int32_t>& skip()
const;
306 const stdx::optional<bsoncxx::document::view_or_value>& sort()
const;
309 stdx::optional<bool> _allow_partial_results;
310 stdx::optional<std::int32_t> _batch_size;
311 stdx::optional<bsoncxx::string::view_or_value> _comment;
312 stdx::optional<cursor::type> _cursor_type;
313 stdx::optional<class hint> _hint;
314 stdx::optional<std::int32_t> _limit;
315 stdx::optional<std::chrono::milliseconds> _max_await_time;
316 stdx::optional<std::chrono::milliseconds> _max_time;
317 stdx::optional<bsoncxx::document::view_or_value> _modifiers;
318 stdx::optional<bool> _no_cursor_timeout;
319 stdx::optional<bsoncxx::document::view_or_value> _projection;
320 stdx::optional<class read_preference> _read_preference;
321 stdx::optional<std::int32_t> _skip;
322 stdx::optional<bsoncxx::document::view_or_value> _ordering;
326 MONGOCXX_INLINE_NAMESPACE_END
329 #include <mongocxx/config/postlude.hpp>
Definition: bulk_write.hpp:22
Class representing the optional arguments to a MongoDB query.
Definition: find.hpp:36
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:34
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:54
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36