19 #include <mongocxx/client_session.hpp> 20 #include <mongocxx/database.hpp> 21 #include <mongocxx/options/client.hpp> 22 #include <mongocxx/options/client_session.hpp> 23 #include <mongocxx/read_concern.hpp> 24 #include <mongocxx/read_preference.hpp> 25 #include <mongocxx/stdx.hpp> 26 #include <mongocxx/uri.hpp> 27 #include <mongocxx/write_concern.hpp> 29 #include <mongocxx/config/prelude.hpp> 35 MONGOCXX_INLINE_NAMESPACE_BEGIN
98 explicit operator bool()
const noexcept;
117 void read_concern_deprecated(
class read_concern rc);
124 class read_concern read_concern() const;
143 void read_preference_deprecated(
class read_preference rp);
152 class read_preference read_preference() const;
159 class uri uri() const;
176 void write_concern_deprecated(
class write_concern wc);
182 class write_concern write_concern() const;
194 class database database(bsoncxx::string::view_or_value name) const&;
195 class database database(bsoncxx::string::view_or_value name) const&& = delete;
208 MONGOCXX_INLINE class database operator[](bsoncxx::string::view_or_value name) const&;
209 MONGOCXX_INLINE class database operator[](bsoncxx::string::view_or_value name) const&& = delete;
226 cursor list_databases() const;
244 cursor list_databases(const client_session& session) const;
262 cursor list_databases(const bsoncxx::document::view_or_value filter) const;
277 std::vector<std::string> list_database_names(
278 const bsoncxx::document::view_or_value filter = {}) const;
293 client_session start_session(const options::client_session& options = {});
309 change_stream watch(const options::change_stream& options = {});
322 change_stream watch(const client_session& session, const options::change_stream& options = {});
340 change_stream watch(const pipeline& pipe, const options::change_stream& options = {});
358 const pipeline& pipe,
359 const options::change_stream& options = {});
384 friend class database;
388 MONGOCXX_PRIVATE explicit
client(void* implementation);
390 MONGOCXX_PRIVATE
change_stream _watch(const client_session* session,
391 const pipeline& pipe,
392 const options::change_stream& options);
394 class MONGOCXX_PRIVATE impl;
396 MONGOCXX_PRIVATE impl& _get_impl();
397 MONGOCXX_PRIVATE const impl& _get_impl() const;
399 std::unique_ptr<impl> _impl;
402 MONGOCXX_INLINE database client::operator[](bsoncxx::string::view_or_value name) const& {
403 return database(name);
406 MONGOCXX_INLINE_NAMESPACE_END
409 #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
Class representing the optional arguments to a MongoDB driver client object.
Definition: client.hpp:34
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
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
Use a session for a sequence of operations, optionally with causal consistency.
Definition: client_session.hpp:39
Class representing a MongoDB database.
Definition: database.hpp:43
Definition: change_stream.hpp:31
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:62
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
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85