#include <mongocxx/v_noabi/mongocxx/options/transaction.hpp>
Used by MongoDB transaction operations.
Public Member Functions | |
| transaction ()=default | |
| Default initialization. | |
| transaction (transaction &&other) noexcept=default | |
| Move constructs transaction options. | |
| transaction (transaction const &other) | |
| Copy constructs transaction options. | |
| transaction (v1::transaction_options txn) | |
| Construct with the mongocxx::v1 equivalent. | |
| ~transaction () noexcept=default | |
| Destroys the transaction options. | |
| bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > | max_commit_time_ms () const |
| Gets the current transaction commit time, in milliseconds. | |
| transaction & | max_commit_time_ms (std::chrono::milliseconds ms) |
| Sets the transaction's max commit time, in milliseconds. | |
| operator v1::transaction_options () && | |
| Convert to the mongocxx::v1 equivalent. | |
| operator v1::transaction_options () const & | |
| Convert to the mongocxx::v1 equivalent. | |
| transaction & | operator= (transaction &&other) noexcept=default |
| Move assigns transaction options. | |
| transaction & | operator= (transaction const &other) |
| Copy assigns transaction options. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > | read_concern () const |
| Gets the current transaction read concern. | |
| transaction & | read_concern (v_noabi::read_concern const &rc) |
| Sets the transaction read concern. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > | read_preference () const |
| Gets the current transaction read preference. | |
| transaction & | read_preference (v_noabi::read_preference const &rp) |
| Sets the transaction read preference. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > | write_concern () const |
| Gets the current transaction write concern. | |
| transaction & | write_concern (v_noabi::write_concern const &wc) |
| Sets the transaction write concern. | |
|
default |
Default initialization.
| mongocxx::v_noabi::options::transaction::transaction | ( | transaction const & | other | ) |
Copy constructs transaction options.
|
defaultnoexcept |
Move constructs transaction options.
|
defaultnoexcept |
Destroys the transaction options.
|
inline |
Construct with the mongocxx::v1 equivalent.
| bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > mongocxx::v_noabi::options::transaction::max_commit_time_ms | ( | ) | const |
Gets the current transaction commit time, in milliseconds.
| transaction & mongocxx::v_noabi::options::transaction::max_commit_time_ms | ( | std::chrono::milliseconds | ms | ) |
Sets the transaction's max commit time, in milliseconds.
| ms | The max commit time in milliseconds. |
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
defaultnoexcept |
Move assigns transaction options.
| transaction & mongocxx::v_noabi::options::transaction::operator= | ( | transaction const & | other | ) |
Copy assigns transaction options.
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > mongocxx::v_noabi::options::transaction::read_concern | ( | ) | const |
Gets the current transaction read concern.
| transaction & mongocxx::v_noabi::options::transaction::read_concern | ( | v_noabi::read_concern const & | rc | ) |
Sets the transaction read concern.
| rc | The read concern. |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > mongocxx::v_noabi::options::transaction::read_preference | ( | ) | const |
Gets the current transaction read preference.
| transaction & mongocxx::v_noabi::options::transaction::read_preference | ( | v_noabi::read_preference const & | rp | ) |
Sets the transaction read preference.
| rp | The read preference. |
| bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > mongocxx::v_noabi::options::transaction::write_concern | ( | ) | const |
Gets the current transaction write concern.
| transaction & mongocxx::v_noabi::options::transaction::write_concern | ( | v_noabi::write_concern const & | wc | ) |
Sets the transaction write concern.
| wc | The write concern. |