Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

transactor.hxx File Reference

#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)


Define Documentation

#define PQXX_DEPRECATED_TRANSACTION_CALLBACKS
 

Support deprecated OnCommit(), OnAbort(), OnDoubt() for the time being.


Function Documentation

template<typename TRANSACTOR>
void pqxx::connection_base::perform const TRANSACTOR &  T,
int  Attempts
 

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.


Generated on Mon Oct 3 20:29:01 2005 for libpqxx by  doxygen 1.4.2