libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pqxx::connect_lazy Class Reference

Lazy connection policy; causes connection to be deferred until first use. More...

#include <connection.hxx>

Inheritance diagram for pqxx::connect_lazy:
Collaboration diagram for pqxx::connect_lazy:

Public Types

typedef internal::pq::PGconnhandle
 

Public Member Functions

 connect_lazy (const PGSTD::string &opts)
 
virtual handle do_completeconnect (handle)
 
virtual handle do_disconnect (handle orig) throw ()
 
virtual handle do_dropconnect (handle orig) throw ()
 
virtual handle do_startconnect (handle orig)
 
virtual bool is_ready (handle) const throw ()
 
const PGSTD::string & options () const throw ()
 

Protected Member Functions

handle normalconnect (handle)
 

Detailed Description

Lazy connection policy; causes connection to be deferred until first use.

This is connect_direct's lazy younger brother. It does not attempt to open a connection right away; the connection is only created when it is actually used.

Member Typedef Documentation

Constructor & Destructor Documentation

pqxx::connect_lazy::connect_lazy ( const PGSTD::string &  opts)
inlineexplicit

Member Function Documentation

virtual handle pqxx::connect_lazy::do_completeconnect ( handle  )
virtual

Reimplemented from pqxx::connectionpolicy.

virtual handle pqxx::connectionpolicy::do_disconnect ( handle  orig) throw ()
virtualinherited
virtual handle pqxx::connectionpolicy::do_dropconnect ( handle  orig) throw ()
virtualinherited

Reimplemented in pqxx::connect_async.

virtual handle pqxx::connectionpolicy::do_startconnect ( handle  orig)
virtualinherited

Reimplemented in pqxx::connect_async, and pqxx::connect_direct.

virtual bool pqxx::connectionpolicy::is_ready ( handle  ) const throw ()
virtualinherited

Reimplemented in pqxx::connect_async.

handle pqxx::connectionpolicy::normalconnect ( handle  )
protectedinherited
const PGSTD::string& pqxx::connectionpolicy::options ( ) const throw ()
inlineinherited

The documentation for this class was generated from the following file: