19 #include <bsoncxx/string/view_or_value.hpp>
20 #include <mongocxx/database.hpp>
21 #include <mongocxx/options/client.hpp>
22 #include <mongocxx/read_concern.hpp>
23 #include <mongocxx/read_preference.hpp>
24 #include <mongocxx/stdx.hpp>
25 #include <mongocxx/uri.hpp>
26 #include <mongocxx/write_concern.hpp>
28 #include <mongocxx/config/prelude.hpp>
31 MONGOCXX_INLINE_NAMESPACE_BEGIN
90 explicit operator bool()
const noexcept;
111 class read_concern read_concern() const;
134 class read_preference read_preference() const;
141 class uri uri() const;
159 class write_concern write_concern() const;
171 class database database(bsoncxx::string::view_or_value name) const&;
172 class database database(bsoncxx::string::view_or_value name) const&& = delete;
185 MONGOCXX_INLINE class database operator[](bsoncxx::string::view_or_value name) const&;
186 MONGOCXX_INLINE class database operator[](bsoncxx::string::view_or_value name) const&& = delete;
201 cursor list_databases() const;
205 friend class database;
208 MONGOCXX_PRIVATE explicit
client(void* implementation);
210 class MONGOCXX_PRIVATE impl;
212 MONGOCXX_PRIVATE impl& _get_impl();
213 MONGOCXX_PRIVATE const impl& _get_impl() const;
215 std::unique_ptr<impl> _impl;
218 MONGOCXX_INLINE database client::operator[](bsoncxx::string::view_or_value name) const & {
219 return database(name);
222 MONGOCXX_INLINE_NAMESPACE_END
225 #include <mongocxx/config/postlude.hpp>
Class representing a MongoDB connection string URI.
Definition: uri.hpp:40
Definition: bulk_write.hpp:22
Class representing the optional arguments to a MongoDB driver client object.
Definition: client.hpp:33
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:35
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
A class to represent the read concern.
Definition: read_concern.hpp:46
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:74