19 #include <bsoncxx/document/view.hpp> 20 #include <bsoncxx/stdx/optional.hpp> 21 #include <mongocxx/options/client_session.hpp> 23 #include <mongocxx/config/prelude.hpp> 26 MONGOCXX_INLINE_NAMESPACE_BEGIN
119 void start_transaction(
const stdx::optional<options::transaction>& transaction_opts = {});
128 void commit_transaction();
136 void abort_transaction();
145 class MONGOCXX_PRIVATE impl;
151 MONGOCXX_PRIVATE impl& _get_impl();
152 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
154 std::unique_ptr<impl> _impl;
157 MONGOCXX_INLINE_NAMESPACE_END
160 #include <mongocxx/config/postlude.hpp> Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
Class representing a client connection to MongoDB.
Definition: client.hpp:57
Use a session for a sequence of operations, optionally with causal consistency.
Definition: client_session.hpp:38
Class representing a MongoDB database.
Definition: database.hpp:44
Class representing a batch of write operations that can be sent to the server as a group...
Definition: bulk_write.hpp:43
A BSON replication timestamp value.
Definition: types.hpp:558
Class representing the optional arguments to mongocxx::client::start_session.
Definition: client_session.hpp:30
Definition: index_view.hpp:32
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85