Class representing the optional arguments for a transaction.
More...
#include <transaction.hpp>
Class representing the optional arguments for a transaction.
◆ read_concern() [1/2]
stdx::optional< class read_concern > mongocxx::options::transaction::read_concern |
( |
| ) |
const |
Gets the current transaction read concern.
- Returns
- An optional containing the read concern. If the read concern has not been set, a disengaged optional is returned.
◆ read_concern() [2/2]
Sets the transaction read concern.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ read_preference() [1/2]
stdx::optional< class read_preference > mongocxx::options::transaction::read_preference |
( |
| ) |
const |
Gets the current transaction read preference.
- Returns
- An optional containing the read preference. If the read preference has not been set, a disengaged optional is returned.
◆ read_preference() [2/2]
Sets the transaction read preference.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ write_concern() [1/2]
stdx::optional< class write_concern > mongocxx::options::transaction::write_concern |
( |
| ) |
const |
Gets the current transaction write concern.
- Returns
- The write concern.
-
An optional containing the write concern. If the write concern has not been set, a disengaged optional is returned.
◆ write_concern() [2/2]
Sets the transaction write concern.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
The documentation for this class was generated from the following file: