62 auto run(
txn_logic&& logic) -> std::pair<error, transaction_result>
64 return run(std::move(logic), {});
92 return run(std::move(logic), std::move(complete_callback), {});
The transaction_options can be passed in to override some elements of the global transactions_config.
Definition transaction_options.hxx:37
The transactions object is used to initiate a transaction.
Definition transactions.hxx:39
virtual ~transactions()=default
virtual void run(async_txn_logic &&logic, async_txn_complete_logic &&complete_callback, const transaction_options &cfg)=0
Run an asynchronous transaction.
virtual auto run(txn_logic &&logic, const transaction_options &cfg) -> std::pair< error, transaction_result >=0
Run a blocking transaction.
void run(async_txn_logic &&logic, async_txn_complete_logic &&complete_callback)
Definition transactions.hxx:90
auto run(txn_logic &&logic) -> std::pair< error, transaction_result >
Definition transactions.hxx:62
Definition transactions.hxx:28
std::function< error(std::shared_ptr< async_attempt_context >)> async_txn_logic
Definition transactions.hxx:30
std::function< error(std::shared_ptr< attempt_context >)> txn_logic
Definition transactions.hxx:29
std::function< void(error, transaction_result)> async_txn_complete_logic
Definition transactions.hxx:31
@ error
Indicates that the ping operation failed.
Results of a transaction.
Definition transaction_result.hxx:29