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
74 const stdx::optional<
transaction>& default_transaction_opts() const;
77 bool _causal_consistency = true;
78 stdx::optional<
transaction> _default_transaction_opts;
82 MONGOCXX_INLINE_NAMESPACE_END
85 #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 current 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