MongoDB C++ Driver
mongocxx-3.4.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 class read_concern &rc) |
Sets the transaction read concern. More... | |
stdx::optional< class read_concern > | read_concern () const |
Gets the current transaction read concern. More... | |
transaction & | write_concern (const class write_concern &wc) |
Sets the transaction write concern. More... | |
stdx::optional< class write_concern > | write_concern () const |
Gets the current transaction write concern. More... | |
transaction & | read_preference (const class read_preference &rp) |
Sets the transaction read preference. More... | |
stdx::optional< class read_preference > | read_preference () const |
Gets the current transaction read preference. More... | |
Class representing the optional arguments for a transaction.
transaction& mongocxx::options::transaction::read_concern | ( | const class read_concern & | rc | ) |
Sets the transaction read concern.
rc | The read concern. |
stdx::optional<class read_concern> mongocxx::options::transaction::read_concern | ( | ) | const |
Gets the current transaction read concern.
transaction& mongocxx::options::transaction::read_preference | ( | const class read_preference & | rp | ) |
Sets the transaction read preference.
rp | The read preference. |
stdx::optional<class read_preference> mongocxx::options::transaction::read_preference | ( | ) | const |
Gets the current transaction read preference.
transaction& mongocxx::options::transaction::write_concern | ( | const class write_concern & | wc | ) |
Sets the transaction write concern.
wc | The write concern. |
stdx::optional<class write_concern> mongocxx::options::transaction::write_concern | ( | ) | const |
Gets the current transaction write concern.