19 #include <mongocxx/client_session.hpp>
20 #include <mongocxx/database.hpp>
21 #include <mongocxx/options/client.hpp>
22 #include <mongocxx/options/client_encryption.hpp>
23 #include <mongocxx/options/client_session.hpp>
24 #include <mongocxx/read_concern.hpp>
25 #include <mongocxx/read_preference.hpp>
26 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/uri.hpp>
28 #include <mongocxx/write_concern.hpp>
30 #include <mongocxx/config/prelude.hpp>
33 inline namespace v_noabi {
95 explicit operator
bool() const noexcept;
205 MONGOCXX_INLINE class
database operator[](
bsoncxx::
string::view_or_value name) const&;
206 MONGOCXX_INLINE class
database operator[](
bsoncxx::
string::view_or_value name) const&& = delete;
281 const
bsoncxx::document::view_or_value opts) const;
296 std::vector<std::
string> list_database_names(
297 const
bsoncxx::document::view_or_value filter = {})
const;
316 const client_session& session,
const bsoncxx::document::view_or_value filter = {})
const;
428 MONGOCXX_PRIVATE
explicit client(
void* implementation);
434 class MONGOCXX_PRIVATE impl;
436 MONGOCXX_PRIVATE impl& _get_impl();
437 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
439 std::unique_ptr<impl> _impl;
449 #include <mongocxx/config/postlude.hpp>
Class representing a MongoDB change stream.
Definition: change_stream.hpp:33
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition: client_session.hpp:40
Class representing a client connection to MongoDB.
Definition: client.hpp:54
client_session start_session(const options::client_session &options={})
Create a client session for a sequence of operations.
change_stream watch(const options::change_stream &options={})
Gets a change stream on this client with an empty pipeline.
change_stream watch(const client_session &session, const options::change_stream &options={})
class database operator[](bsoncxx::string::view_or_value name) const &
Allows the syntax client["db_name"] as a convenient shorthand for the client::database() method by im...
Definition: client.hpp:442
client() noexcept
Default constructs a new client.
change_stream watch(const client_session &session, const pipeline &pipe, const options::change_stream &options={})
Gets a change stream on this client.
void reset()
Prevents resource cleanup in the child process from interfering with the parent process after forking...
std::vector< std::string > list_database_names(const client_session &session, const bsoncxx::document::view_or_value filter={}) const
Queries the MongoDB server for a list of known databases.
change_stream watch(const pipeline &pipe, const options::change_stream &options={})
Gets a change stream on this client.
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
Class representing a MongoDB database.
Definition: database.hpp:44
Class representing options for automatic client-side encryption.
Definition: auto_encryption.hpp:35
Class representing MongoDB change stream options.
Definition: change_stream.hpp:38
Class representing options for the object managing explicit client-side encryption.
Definition: client_encryption.hpp:35
Class representing the optional arguments to mongocxx::client::start_session.
Definition: client_session.hpp:32
Class representing a MongoDB aggregation pipeline.
Definition: pipeline.hpp:37
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:46
A class to represent the read concern.
Definition: read_concern.hpp:57
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:67
Class representing a MongoDB connection string URI.
Definition: uri.hpp:42
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:59
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24