17 #include <bsoncxx/stdx/optional.hpp>
18 #include <mongocxx/options/transaction.hpp>
19 #include <mongocxx/stdx.hpp>
21 #include <mongocxx/config/prelude.hpp>
24 MONGOCXX_INLINE_NAMESPACE_BEGIN
77 bool snapshot() const noexcept;
96 const stdx::optional<
transaction>& default_transaction_opts() const;
102 stdx::optional<
bool> _causal_consistency;
103 stdx::optional<
bool> _enable_snapshot_reads;
105 stdx::optional<
transaction> _default_transaction_opts;
109 MONGOCXX_INLINE_NAMESPACE_END
112 #include <mongocxx/config/postlude.hpp>
Class representing the optional arguments to mongocxx::client::start_session.
Definition: client_session.hpp:30
bool causal_consistency() const noexcept
Gets the value of the causal_consistency option.
client_session & causal_consistency(bool causal_consistency) noexcept
Sets the causal_consistency option.
Class representing the optional arguments for a transaction.
Definition: transaction.hpp:38
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24