21 #include <bsoncxx/document/view.hpp>
22 #include <bsoncxx/string/view_or_value.hpp>
23 #include <mongocxx/read_concern.hpp>
24 #include <mongocxx/read_preference.hpp>
25 #include <mongocxx/write_concern.hpp>
27 #include <mongocxx/config/prelude.hpp>
30 MONGOCXX_INLINE_NAMESPACE_BEGIN
40 class MONGOCXX_API
uri {
48 static const std::string k_default_uri;
67 uri& operator=(
uri&&) noexcept;
79 std::
string auth_mechanism() const;
86 std::
string auth_source() const;
93 std::vector<
host> hosts() const;
107 bsoncxx::document::view options() const;
114 std::
string password() const;
135 std::
string replica_set() const;
149 std::
string to_string() const;
156 std::
string username() const;
169 class MONGOCXX_PRIVATE impl;
171 MONGOCXX_PRIVATE
uri(
std::unique_ptr<impl>&& implementation);
173 std::unique_ptr<impl> _impl;
176 MONGOCXX_INLINE_NAMESPACE_END
179 #include <mongocxx/config/postlude.hpp>
Class representing a MongoDB connection string URI.
Definition: uri.hpp:40
Definition: bulk_write.hpp:22
Definition: error_code.hpp:67
Class representing a client connection to MongoDB.
Definition: client.hpp:49
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:49
Class representing a MongoDB database.
Definition: database.hpp:43
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
A class to represent the read concern.
Definition: read_concern.hpp:46
Definition: element.hpp:24
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:54