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;
114 std::string password()
const;
135 std::string replica_set()
const;
144 MONGOCXX_DEPRECATED
bool ssl()
const;
165 std::string username()
const;
178 class MONGOCXX_PRIVATE impl;
180 MONGOCXX_PRIVATE
uri(std::unique_ptr<impl>&& implementation);
182 std::unique_ptr<impl> _impl;
185 MONGOCXX_INLINE_NAMESPACE_END
188 #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
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
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:43
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:62
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:54
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:56