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::internal::reactivation_avoidance_counter
class  internal::disable_noticer
 Temporarily disable the notice processor. More...
class  internal::reactivation_avoidance_exemption
 Scoped exemption to reactivation avoidance. 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.

Functions

void pqxx::internal::reactivation_avoidance_counter::add (int n) throw ()
void pqxx::internal::reactivation_avoidance_counter::clear () throw ()
int pqxx::internal::reactivation_avoidance_counter::get () const throw ()
void pqxx::internal::reactivation_avoidance_counter::give_to (reactivation_avoidance_counter &rhs) throw ()
virtual pqxx::noticer::~noticer () throw ()
virtual void pqxx::noticer::operator() (const char Msg[])=0 throw ()
virtual void pqxx::nonnoticer::operator() (const char[]) throw ()
 internal::scoped_noticer::~scoped_noticer ()
 internal::scoped_noticer::scoped_noticer (connection_base &c, noticer *t) throw ()
 Take ownership of given noticer, and start using it.
 internal::reactivation_avoidance_exemption::~reactivation_avoidance_exemption ()
void internal::reactivation_avoidance_exemption::close_connection () throw ()
void internal::wait_read (const internal::pq::PGconn *)
void internal::wait_read (const internal::pq::PGconn *, long seconds, long microseconds)
void internal::wait_write (const internal::pq::PGconn *)

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.


Function Documentation

void pqxx::internal::reactivation_avoidance_counter::add int  n  )  throw () [inherited]
 

void pqxx::internal::reactivation_avoidance_counter::clear  )  throw () [inherited]
 

void internal::reactivation_avoidance_exemption::close_connection  )  throw () [inherited]
 

int pqxx::internal::reactivation_avoidance_counter::get  )  const throw () [inherited]
 

void pqxx::internal::reactivation_avoidance_counter::give_to reactivation_avoidance_counter rhs  )  throw () [inherited]
 

virtual void pqxx::nonnoticer::operator() const   char[]  )  throw () [virtual, inherited]
 

Implements pqxx::noticer.

virtual void pqxx::noticer::operator() const char  Msg[]  )  throw () [pure virtual, inherited]
 

Implemented in pqxx::nonnoticer.

internal::scoped_noticer::scoped_noticer connection_base &  c,
noticer *  t
throw () [protected, inherited]
 

Take ownership of given noticer, and start using it.

This constructor is not public because its interface does not express the fact that the scoped_noticer takes ownership of the noticer through an auto_ptr.

void internal::wait_read const internal::pq::PGconn ,
long  seconds,
long  microseconds
 

void internal::wait_read const internal::pq::PGconn  ) 
 

void internal::wait_write const internal::pq::PGconn  ) 
 

virtual pqxx::noticer::~noticer  )  throw () [virtual, inherited]
 

internal::reactivation_avoidance_exemption::~reactivation_avoidance_exemption  )  [inherited]
 

internal::scoped_noticer::~scoped_noticer  )  [inherited]
 


Generated on Sat May 27 17:35:04 2006 for libpqxx by  doxygen 1.4.6