317 const
bsoncxx::v_noabi::document::view_or_value opts) const;
355 const
bsoncxx::v_noabi::document::view_or_value filter = {})
const;
467 friend ::mongocxx::v_noabi::client_session;
468 friend ::mongocxx::v_noabi::collection;
469 friend ::mongocxx::v_noabi::database;
470 friend ::mongocxx::v_noabi::options::auto_encryption;
471 friend ::mongocxx::v_noabi::options::client_encryption;
472 friend ::mongocxx::v_noabi::pool;
474 explicit client(
void* implementation);
483 const impl& _get_impl()
const;
485 std::unique_ptr<impl> _impl;
Declares mongocxx::v_noabi::options::auto_encryption.
Class representing a view-or-value variant type for strings.
Definition view_or_value.hpp:41
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:48
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.
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.
change_stream watch(const options::change_stream &options={})
Get 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:230
cursor list_databases(const client_session &session) const
Enumerates the databases in the client.
client() noexcept
Default constructs a new client. The client is not connected and is equivalent to the state of a move...
cursor list_databases() const
Enumerates the databases in the client.
void reset()
Prevents resource cleanup in the child process from interfering with the parent process after forking...
mongocxx::v_noabi::database database(bsoncxx::v_noabi::string::view_or_value name) const &
Obtains a database that represents a logical grouping of collections on a MongoDB server.
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:38
Class representing a MongoDB aggregation pipeline.
Definition pipeline.hpp:39
A class to represent the read concern. Read concern can be set at the client, database,...
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:64
Class representing a MongoDB connection string URI.
Definition uri.hpp:43
Class representing the server-side requirement for reporting the success of a write operation....
Definition write_concern.hpp:60
Declares mongocxx::v_noabi::client.
Declares mongocxx::v_noabi::client_session.
Provides mongocxx::v_noabi::client_session.
Declares mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::database.
Provides mongocxx::v_noabi::database.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition fwd.hpp:212
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:204
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides mongocxx::v_noabi::options::client.
Declares mongocxx::v_noabi::options::client_encryption.
Provides mongocxx::v_noabi::options::client_encryption.
Provides mongocxx::v_noabi::options::client_session.
Declares mongocxx::v_noabi::pool.
Provides mongocxx::v_noabi::read_concern.
Provides mongocxx::v_noabi::read_preference.
Provides mongocxx::v_noabi::uri.
Provides mongocxx::v_noabi::write_concern.