Connection classes


Classes

class  pqxx::connect_direct
 Connection policy; creates an immediate connection to a database. More...
class  pqxx::connect_lazy
 Lazy connection policy; causes connection to be deferred until first use. More...
class  pqxx::connect_async
 Asynchronous connection policy; connects "in the background". More...
class  pqxx::connect_null
 Nonfunctional, always-down connection policy for debugging purposes. More...
class  pqxx::connectionpolicy

Typedefs

typedef basic_connection<
connect_direct > 
pqxx::connection
 The "standard" connection type: connect to database right now.
typedef basic_connection<
connect_lazy > 
pqxx::lazyconnection
 A "lazy" connection type: connect to database only when needed.
typedef basic_connection<
connect_async > 
pqxx::asyncconnection
 "Asynchronous" connection type: start connecting, but don't wait for it
typedef basic_connection<
connect_null > 
pqxx::nullconnection
 A "dummy" connection type: don't connect to any database at all.

Detailed Description

Several types of connections are available, including plain connection and lazyconnection. These types are typedefs combining a derivative of the connection_base class (where essentially all connection-related functionality is defined) with a policy class which governs how the connection is to be established.

Typedef Documentation

typedef basic_connection<connect_async> pqxx::asyncconnection

"Asynchronous" connection type: start connecting, but don't wait for it

typedef basic_connection<connect_direct> pqxx::connection

The "standard" connection type: connect to database right now.

typedef basic_connection<connect_lazy> pqxx::lazyconnection

A "lazy" connection type: connect to database only when needed.

typedef basic_connection<connect_null> pqxx::nullconnection

A "dummy" connection type: don't connect to any database at all.


Generated on Wed Sep 6 16:55:16 2006 for libpqxx by  doxygen 1.4.7