MongoDB C++ Driver
mongocxx-3.6.2
|
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>
36 MONGOCXX_INLINE_NAMESPACE_BEGIN
99 explicit operator
bool() const noexcept;
209 MONGOCXX_INLINE class
database operator[](
bsoncxx::
string::view_or_value name) const&;
210 MONGOCXX_INLINE class
database operator[](
bsoncxx::
string::view_or_value name) const&& = delete;
278 std::vector<std::
string> list_database_names(
279 const
bsoncxx::document::view_or_value filter = {})
const;
391 MONGOCXX_PRIVATE
explicit client(
void* implementation);
397 class MONGOCXX_PRIVATE impl;
399 MONGOCXX_PRIVATE impl& _get_impl();
400 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
402 std::unique_ptr<impl> _impl;
409 MONGOCXX_INLINE_NAMESPACE_END
412 #include <mongocxx/config/postlude.hpp>
A pool of client objects associated with a MongoDB deployment.
Definition: pool.hpp:47
client() noexcept
Default constructs a new client.
Class representing options for the object managing explicit client-side encryption.
Definition: client_encryption.hpp:36
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 pipeline &pipe, const options::change_stream &options={})
Gets a change stream on this client.
Definition: change_stream.hpp:31
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
client_session start_session(const options::client_session &options={})
Create a client session for a sequence of operations.
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:56
Class representing the optional arguments to mongocxx::client::start_session.
Definition: client_session.hpp:30
change_stream watch(const pipeline &pipe, const options::change_stream &options={})
Gets a change stream on this client.
Class representing a client connection to MongoDB.
Definition: client.hpp:58
A class to represent the read concern.
Definition: read_concern.hpp:54
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:62
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36
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:405
void reset()
Prevents resource cleanup in the child process from interfering with the parent process after forking...
Class representing a MongoDB connection string URI.
Definition: uri.hpp:43
change_stream watch(const client_session &session, const options::change_stream &options={})
Class representing options for automatic client-side encryption.
Definition: auto_encryption.hpp:36
Class representing a MongoDB aggregation pipeline.
Definition: pipeline.hpp:38
Definition: change_stream.hpp:35
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
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:81
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36