pqxx::connect_async Class Reference
[Connection classes]

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

#include <connection.hxx>

Inheritance diagram for pqxx::connect_async:
pqxx::connectionpolicy

List of all members.

Public Member Functions

 connect_async (const std::string &opts)
virtual handle do_startconnect (handle) PQXX_OVERRIDE
virtual handle do_completeconnect (handle) PQXX_OVERRIDE
virtual handle do_dropconnect (handle) PQXX_NOEXCEPT PQXX_OVERRIDE
virtual bool is_ready (handle) const PQXX_NOEXCEPT PQXX_OVERRIDE

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.


Constructor & Destructor Documentation

pqxx::connect_async::connect_async ( const std::string &  opts  )  [explicit]

Member Function Documentation

pqxx::connectionpolicy::handle pqxx::connect_async::do_completeconnect ( handle  orig  )  [virtual]
pqxx::connectionpolicy::handle pqxx::connect_async::do_dropconnect ( handle  orig  )  [virtual]

Reimplemented from pqxx::connectionpolicy.

Referenced by do_startconnect().

pqxx::connectionpolicy::handle pqxx::connect_async::do_startconnect ( handle  orig  )  [virtual]
bool pqxx::connect_async::is_ready ( handle  h  )  const [virtual]

Reimplemented from pqxx::connectionpolicy.


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

Generated on 17 Mar 2017 for libpqxx by  doxygen 1.6.1