|
MongoDB C++ Driver
mongocxx-3.10.2
|
Class representing the optional arguments for a transaction. More...
#include <transaction.hpp>
Public Member Functions | |
| transaction (const transaction &) | |
| Copy constructs transaction options. | |
| transaction & | operator= (const transaction &) |
| Copy assigns transaction options. | |
| transaction (transaction &&) noexcept | |
| Move constructs transaction options. | |
| transaction & | operator= (transaction &&) noexcept |
| Move assigns transaction options. | |
| ~transaction () noexcept | |
| Destroys the transaction options. | |
| transaction & | read_concern (const mongocxx::v_noabi::read_concern &rc) |
| Sets the transaction read concern. More... | |
| stdx::optional< mongocxx::v_noabi::read_concern > | read_concern () const |
| Gets the current transaction read concern. More... | |
| transaction & | write_concern (const mongocxx::v_noabi::write_concern &wc) |
| Sets the transaction write concern. More... | |
| stdx::optional< mongocxx::v_noabi::write_concern > | write_concern () const |
| Gets the current transaction write concern. More... | |
| transaction & | read_preference (const mongocxx::v_noabi::read_preference &rp) |
| Sets the transaction read preference. More... | |
| stdx::optional< mongocxx::v_noabi::read_preference > | read_preference () const |
| Gets the current transaction read preference. More... | |
| transaction & | max_commit_time_ms (std::chrono::milliseconds ms) |
| Sets the transaction's max commit time, in milliseconds. More... | |
| stdx::optional< std::chrono::milliseconds > | max_commit_time_ms () const |
| Gets the current transaction commit time, in milliseconds. More... | |
Class representing the optional arguments for a transaction.
| 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. |
| stdx::optional<mongocxx::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 | ( | const mongocxx::v_noabi::read_concern & | rc | ) |
Sets the transaction read concern.
| rc | The read concern. |
| stdx::optional<mongocxx::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 | ( | const mongocxx::v_noabi::read_preference & | rp | ) |
Sets the transaction read preference.
| rp | The read preference. |
| stdx::optional<mongocxx::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 | ( | const mongocxx::v_noabi::write_concern & | wc | ) |
Sets the transaction write concern.
| wc | The write concern. |