19 #include <mongocxx/client-fwd.hpp>
20 #include <mongocxx/client_session-fwd.hpp>
21 #include <mongocxx/collection-fwd.hpp>
22 #include <mongocxx/database-fwd.hpp>
23 #include <mongocxx/options/auto_encryption-fwd.hpp>
24 #include <mongocxx/options/client_encryption-fwd.hpp>
25 #include <mongocxx/pool-fwd.hpp>
27 #include <mongocxx/client_session.hpp>
28 #include <mongocxx/database.hpp>
29 #include <mongocxx/options/client.hpp>
30 #include <mongocxx/options/client_encryption.hpp>
31 #include <mongocxx/options/client_session.hpp>
32 #include <mongocxx/read_concern.hpp>
33 #include <mongocxx/read_preference.hpp>
34 #include <mongocxx/stdx.hpp>
35 #include <mongocxx/uri.hpp>
36 #include <mongocxx/write_concern.hpp>
38 #include <mongocxx/config/prelude.hpp>
103 explicit operator
bool() const noexcept;
215 bsoncxx::v_noabi::
string::view_or_value name) const&;
217 bsoncxx::v_noabi::
string::view_or_value name) const&& = delete;
296 const
bsoncxx::v_noabi::document::view_or_value opts) const;
312 const
bsoncxx::v_noabi::document::view_or_value filter = {})
const;
438 friend ::mongocxx::v_noabi::client_session;
439 friend ::mongocxx::v_noabi::collection;
440 friend ::mongocxx::v_noabi::database;
441 friend ::mongocxx::v_noabi::options::auto_encryption;
442 friend ::mongocxx::v_noabi::options::client_encryption;
443 friend ::mongocxx::v_noabi::pool;
445 MONGOCXX_PRIVATE
explicit client(
void* implementation);
451 class MONGOCXX_PRIVATE impl;
453 MONGOCXX_PRIVATE impl& _get_impl();
454 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
456 std::unique_ptr<impl> _impl;
467 #include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:38
Class representing a MongoDB change stream.
Definition: change_stream.hpp:35
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition: client_session.hpp:47
Class representing a client connection to MongoDB.
Definition: client.hpp:61
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.
mongocxx::v_noabi::database operator[](bsoncxx::v_noabi::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:459
std::vector< std::string > list_database_names(const client_session &session, const bsoncxx::v_noabi::document::view_or_value filter={}) const
Queries the MongoDB server for a list of known databases.
change_stream watch(const client_session &session, const options::change_stream &options={})
std::vector< std::string > list_database_names(const bsoncxx::v_noabi::document::view_or_value filter={}) const
Queries the MongoDB server for a list of known databases.
client() noexcept
Default constructs a new client.
cursor list_databases() const
Enumerates the databases in the 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...
change_stream watch(const pipeline &pipe, const options::change_stream &options={})
Gets a change stream on this client.
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:42
Class representing a MongoDB database.
Definition: database.hpp:46
Class representing MongoDB change stream options.
Definition: change_stream.hpp:39
Class representing the optional arguments to mongocxx::v_noabi::client::start_session.
Definition: client_session.hpp:33
Class representing a MongoDB aggregation pipeline.
Definition: pipeline.hpp:39
A class to represent the read concern.
Definition: read_concern.hpp:56
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:63
Class representing a MongoDB connection string URI.
Definition: uri.hpp:47
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:58
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19