#include <transaction.hxx>
Inheritance diagram for pqxx::transaction< ISOLATIONLEVEL >:

| Public Types | |
| typedef isolation_traits< ISOLATIONLEVEL > | isolation_tag | 
| If nothing else is known, our isolation level is at least read_committed. | |
| Public Member Functions | |
| transaction (connection_base &C, const PGSTD::string &TName) | |
| Create a transaction. | |
| transaction (connection_base &C) | |
| virtual | ~transaction () throw () | 
| Protected Member Functions | |
| virtual const char * | classname () const throw () | 
This is the type you'll normally want to use to represent a transaction on the database.
While you may choose to create your own transaction object to interface to the database backend, it is recommended that you wrap your transaction code into a transactor code instead and let the transaction be created for you.
Usage example: double all wages
extern connection C; work T(C); try { T.exec("UPDATE employees SET wage=wage*2"); T.commit(); // NOTE: do this inside try block } catch (const exception &e) { cerr << e.what() << endl; T.abort(); // Usually not needed; same happens when T's life ends. }
| 
 | |||||
| If nothing else is known, our isolation level is at least read_committed. 
 Reimplemented from pqxx::transaction_base. | 
| 
 | ||||||||||||||||
| Create a transaction. 
 
 | 
| 
 | ||||||||||
| 
 | 
| 
 | |||||||||
| 
 | 
| 
 | |||||||||
| 
 Reimplemented from pqxx::internal::namedclass. | 
 1.3.9.1
 1.3.9.1