22#include <bsoncxx/array/view_or_value.hpp>
23#include <bsoncxx/document/view_or_value.hpp>
24#include <bsoncxx/stdx/optional.hpp>
25#include <mongocxx/options/transaction.hpp>
26#include <mongocxx/stdx.hpp>
28#include <mongocxx/config/prelude.hpp>
31inline namespace v_noabi {
35class search_index_view;
39class topology_description;
99 k_secondary_preferred,
219 stdx::optional<
bsoncxx::document::view> tags() const;
258 stdx::optional<std::chrono::seconds> max_staleness() const;
285 const stdx::optional<
bsoncxx::document::view> hedge() const;
294 friend class events::topology_description;
295 friend class options::transaction;
312 class MONGOCXX_PRIVATE impl;
314 MONGOCXX_PRIVATE
read_preference(std::unique_ptr<impl>&& implementation);
316 std::unique_ptr<impl> _impl;
322#include <mongocxx/config/postlude.hpp>
Class representing a client connection to MongoDB.
Definition client.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:85
Class representing a MongoDB database.
Definition database.hpp:44
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:67
read_preference(read_mode mode)
Constructs a new read_preference.
read_preference(read_preference &&) noexcept
Move constructs a read_preference.
read_preference(read_mode mode, bsoncxx::document::view_or_value tags)
Constructs a new read_preference with tags.
read_mode
Determines which members in a replica set are acceptable to read from.
Definition read_preference.hpp:80
read_preference()
Constructs a new read_preference with read_mode set to k_primary.
read_preference & operator=(const read_preference &)
Copy assigns a read_preference.
read_preference(const read_preference &)
Copy constructs a read_preference.
Class representing a MongoDB search index view.
Definition search_index_view.hpp:19
Class representing a MongoDB connection string URI.
Definition uri.hpp:42
The top-level namespace for bsoncxx library entities.
Definition element.hpp:24
The top-level namespace for mongocxx library entities.
Definition bulk_write.hpp:24
Definition read_preference.hpp:112