#include <connection.hxx>
Public Member Functions | |
connect_async (const PGSTD::string &opts) | |
virtual handle | do_startconnect (handle) |
virtual handle | do_completeconnect (handle) |
virtual handle | do_dropconnect (handle) throw () |
virtual bool | is_ready (handle) const throw () |
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.
pqxx::connect_async::connect_async | ( | const PGSTD::string & | opts | ) | [explicit] |
pqxx::connectionpolicy::handle pqxx::connect_async::do_startconnect | ( | handle | orig | ) | [virtual] |
Reimplemented from pqxx::connectionpolicy.
References do_dropconnect(), and pqxx::connectionpolicy::options().
Referenced by do_completeconnect().
pqxx::connectionpolicy::handle pqxx::connect_async::do_completeconnect | ( | handle | orig | ) | [virtual] |
Reimplemented from pqxx::connectionpolicy.
References pqxx::connectionpolicy::do_disconnect(), do_startconnect(), pqxx::internal::wait_read(), and pqxx::internal::wait_write().
pqxx::connectionpolicy::handle pqxx::connect_async::do_dropconnect | ( | handle | orig | ) | throw () [virtual] |
bool pqxx::connect_async::is_ready | ( | handle | h | ) | const throw () [virtual] |
Reimplemented from pqxx::connectionpolicy.