458 friend ::mongocxx::v_noabi::client_session;
459 friend ::mongocxx::v_noabi::collection;
460 friend ::mongocxx::v_noabi::database;
461 friend ::mongocxx::v_noabi::options::auto_encryption;
462 friend ::mongocxx::v_noabi::options::client_encryption;
463 friend ::mongocxx::v_noabi::pool;
465 explicit client(
void* implementation);
472 impl
const& _get_impl()
const;
474 std::unique_ptr<impl> _impl;
Declares mongocxx::v_noabi::options::auto_encryption.
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
client() noexcept
Default constructs a new client. The client is not connected and is equivalent to the state of a move...
A MongoDB change stream.
Definition change_stream.hpp:35
Supports MongoDB client session operations.
Definition client_session.hpp:50
mongocxx::v_noabi::uri uri() const
Returns the current uri for this client.
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:225
std::vector< std::string > list_database_names(bsoncxx::v_noabi::document::view_or_value const filter={}) const
Queries the MongoDB server for a list of known databases.
void read_concern(mongocxx::v_noabi::read_concern rc)
Sets the read concern for this client.
client() noexcept
Default constructs a new client. The client is not connected and is equivalent to the state of a move...
client_session start_session(options::client_session const &options={})
Create a client session for a sequence of operations.
void write_concern(mongocxx::v_noabi::write_concern wc)
Sets the write concern for this client.
void read_preference(mongocxx::v_noabi::read_preference rp)
Sets the read preference for this client.
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...
cursor list_databases(client_session const &session) const
Enumerates the databases in the client.
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.
change_stream watch(options::change_stream const &options={})
Get a change stream on this client with an empty pipeline.
A cursor over the documents returned by a query to a MongoDB server.
Definition cursor.hpp:42
A MongoDB database.
Definition database.hpp:46
Used by change streams.
Definition change_stream.hpp:38
A MongoDB aggregation pipeline.
Definition pipeline.hpp:39
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 export.hpp:25
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
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.