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

Asynchronous connection policy; connects "in the background". More...

#include <connection.hxx>

Inheritance diagram for pqxx::connect_async:
Collaboration diagram for pqxx::connect_async:

Public Types

typedef internal::pq::PGconnhandle
 

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...
 

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

pqxx::connect_async::connect_async ( const PGSTD::string &  opts)
explicit

Member Function Documentation

virtual handle pqxx::connect_async::do_completeconnect ( handle  )
virtual

Reimplemented from pqxx::connectionpolicy.

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

Reimplemented from pqxx::connectionpolicy.

virtual handle pqxx::connect_async::do_startconnect ( handle  )
virtual

Reimplemented from pqxx::connectionpolicy.

virtual bool pqxx::connect_async::is_ready ( handle  ) const throw ()
virtual

Reimplemented from pqxx::connectionpolicy.

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

Member Data Documentation

bool pqxx::connect_async::m_connecting
private

Is a connection attempt in progress?


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