MongoDB C++ Driver
mongocxx-3.6.2
|
20 #include <bsoncxx/document/view.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/options/client_session.hpp>
24 #include <mongocxx/config/prelude.hpp>
27 MONGOCXX_INLINE_NAMESPACE_BEGIN
73 bsoncxx::document::view
id() const noexcept;
81 bsoncxx::document::view cluster_time() const noexcept;
88 bsoncxx::types::b_timestamp operation_time() const noexcept;
93 std::uint32_t server_id() const noexcept;
103 void advance_cluster_time(const
bsoncxx::document::view& cluster_time);
113 void advance_operation_time(const
bsoncxx::types::b_timestamp& operation_time);
125 void start_transaction(const stdx::optional<options::transaction>& transaction_opts = {});
175 class MONGOCXX_PRIVATE impl;
181 MONGOCXX_PRIVATE impl& _get_impl();
182 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
184 std::unique_ptr<impl> _impl;
187 MONGOCXX_INLINE_NAMESPACE_END
190 #include <mongocxx/config/postlude.hpp>
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
Class representing the optional arguments to mongocxx::client::start_session.
Definition: client_session.hpp:30
std::function< void(client_session *)> with_transaction_cb
Helper to run a user-provided callback within a transaction.
Definition: client_session.hpp:165
void abort_transaction()
Aborts a transaction on the current client session.
Class representing a client connection to MongoDB.
Definition: client.hpp:58
Definition: index_view.hpp:32
client_session(client_session &&) noexcept
Move constructs a session.
Use a session for a sequence of operations, optionally with causal consistency.
Definition: client_session.hpp:39
Class representing a batch of write operations that can be sent to the server as a group.
Definition: bulk_write.hpp:43
Class representing a MongoDB database.
Definition: database.hpp:43
Class representing the optional arguments for a transaction.
Definition: transaction.hpp:38
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:81
void commit_transaction()
Commits a transaction on the current client session.