Lazy connection policy; causes connection to be deferred until first use. More...
#include <connection.hxx>
Public Types | |
typedef internal::pq::PGconn * | handle |
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) |
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.
|
inherited |
|
inlineexplicit |
Reimplemented from pqxx::connectionpolicy.
Reimplemented in pqxx::connect_async.
Reimplemented in pqxx::connect_async, and pqxx::connect_direct.
|
virtualinherited |
Reimplemented in pqxx::connect_async.
|
inlineinherited |