314 friend ::
mongocxx::v_noabi::events::topology_description;
315 friend ::
mongocxx::v_noabi::options::transaction;
323 std::unique_ptr<impl> _impl;
329#include <mongocxx/config/postlude.hpp>
Provides bsoncxx::v_noabi::array::view_or_value.
Class representing a client connection to MongoDB.
Definition client.hpp:62
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:87
Class representing a MongoDB database.
Definition database.hpp:47
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:65
stdx::optional< std::chrono::seconds > max_staleness() const
Returns the current max staleness setting for this read_preference.
const stdx::optional< bsoncxx::v_noabi::document::view > hedge() const
Gets the current hedge document to be used for the read preference.
stdx::optional< bsoncxx::v_noabi::document::view > tags() const
Sets or updates the tag set list for this read_preference.
read_mode
Determines which members in a replica set are acceptable to read from.
Definition read_preference.hpp:79
@ k_nearest
Read from the node with the lowest latency irrespective of state.
@ k_primary
Only read from a primary node.
@ k_secondary_preferred
Prefer to read from secondary nodes.
@ k_secondary
Only read from secondary nodes.
@ k_primary_preferred
Prefer to read from a primary node.
read_mode mode() const
Returns the current read_mode for this read_preference.
Class representing a MongoDB search index view.
Definition search_index_view.hpp:24
Class representing a MongoDB connection string URI.
Definition uri.hpp:43
Declares mongocxx::v_noabi::client.
Declares mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::database.
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition fwd.hpp:258
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::read_preference.
Declares mongocxx::v_noabi::search_index_view.
Redeclares bsoncxx::v_noabi::stdx in mongocxx::v_noabi::stdx for internal use.
Definition read_preference.hpp:111
Declares mongocxx::v_noabi::events::topology_description.
Declares mongocxx::v_noabi::options::transaction.
Provides mongocxx::v_noabi::options::transaction.
Declares mongocxx::v_noabi::uri.