#include <mongocxx/v1/client_session.hpp>
Options for mongocxx::v1::client_session.
Supported fields include:
Public Member Functions | |
| options () | |
| Default initialization. | |
| options (options &&other) noexcept | |
| Move constructor. | |
| options (options const &other) | |
| Copy construction. | |
| ~options () | |
| Destroy this object. | |
| bool | causal_consistency () const |
| Return the current "causalConsistency" field. | |
| options & | causal_consistency (bool v) |
| Set the "causalConsistency" field. | |
| bsoncxx::v1::stdx::optional< v1::transaction_options > | default_transaction_opts () const |
| Return the current "defaultTransactionOptions" field. | |
| options & | default_transaction_opts (v1::transaction_options const &v) |
| Set the "defaultTransactionOptions" field. | |
| options & | operator= (options &&other) noexcept |
| Move assignment. | |
| options & | operator= (options const &other) |
| Copy assignment. | |
| bool | snapshot () const |
| Return the current "snapshot" field. | |
| options & | snapshot (bool v) |
| Set the "snapshot" field. | |
| mongocxx::v1::client_session::options::~options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::client_session::options::options | ( | options const & | other | ) |
Copy construction.
| mongocxx::v1::client_session::options::options | ( | ) |
Default initialization.
| bool mongocxx::v1::client_session::options::causal_consistency | ( | ) | const |
Return the current "causalConsistency" field.
| options & mongocxx::v1::client_session::options::causal_consistency | ( | bool | v | ) |
Set the "causalConsistency" field.
| bsoncxx::v1::stdx::optional< v1::transaction_options > mongocxx::v1::client_session::options::default_transaction_opts | ( | ) | const |
Return the current "defaultTransactionOptions" field.
| options & mongocxx::v1::client_session::options::default_transaction_opts | ( | v1::transaction_options const & | v | ) |
Set the "defaultTransactionOptions" field.
Move assignment.
Copy assignment.
| bool mongocxx::v1::client_session::options::snapshot | ( | ) | const |
Return the current "snapshot" field.
| options & mongocxx::v1::client_session::options::snapshot | ( | bool | v | ) |
Set the "snapshot" field.