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;
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
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Definition: error_code.hpp:117
Class representing a client connection to MongoDB.
Definition: client.hpp:57
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:47
Class representing a MongoDB database.
Definition: database.hpp:47
stdx::string_view to_string(log_level level)
Returns a stringification of the given log level.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:57
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:52
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:55