#include "pqxx/libcompiler.h"
#include "pqxx/connection_base"
#include "pqxx/transaction"
Include dependency graph for transactor.hxx:
Go to the source code of this file.
Namespaces | |
namespace | pqxx |
Defines | |
#define | PQXX_DEPRECATED_TRANSACTION_CALLBACKS |
Support deprecated OnCommit(), OnAbort(), OnDoubt() for the time being. | |
Functions | |
template<typename TRANSACTOR> | |
void | pqxx::connection_base::perform (const TRANSACTOR &T, int Attempts) |
|
Support deprecated OnCommit(), OnAbort(), OnDoubt() for the time being.
|
|
Invoke a transactor, making at most Attempts attempts to perform the encapsulated code on the database. If the code throws any exception other than broken_connection, it will be aborted right away. Take care: no member functions will be invoked on the original transactor you pass into the function. It only serves as a prototype for the transaction to be performed. The perform() function will copy-construct transactors from the original you passed in, executing the copies only and retaining a "clean" original. |