Asynchronous connection policy; connects "in the background". More...
#include <connection.hxx>
Public Types | |
typedef internal::pq::PGconn * | handle |
Public Member Functions | |
connect_async (const PGSTD::string &opts) | |
virtual handle | do_completeconnect (handle) |
virtual handle | do_disconnect (handle orig) throw () |
virtual handle | do_dropconnect (handle) throw () |
virtual handle | do_startconnect (handle) |
virtual bool | is_ready (handle) const throw () |
const PGSTD::string & | options () const throw () |
Protected Member Functions | |
handle | normalconnect (handle) |
Private Attributes | |
bool | m_connecting |
Is a connection attempt in progress? More... | |
Asynchronous connection policy; connects "in the background".
Connection is initiated immediately, but completion is deferred until the connection is actually needed.
This may help performance by allowing the client to do useful work while waiting for an answer from the server.
|
inherited |
|
explicit |
Reimplemented from pqxx::connectionpolicy.
Reimplemented from pqxx::connectionpolicy.
Reimplemented from pqxx::connectionpolicy.
|
virtual |
Reimplemented from pqxx::connectionpolicy.
|
inlineinherited |
|
private |
Is a connection attempt in progress?