libpqxx
|
Asynchronous connection policy; connects "in the background". More...
#include <connection.hxx>
Public Member Functions | |
connect_async (const std::string &opts) | |
virtual handle | do_startconnect (handle) override |
virtual handle | do_completeconnect (handle) override |
virtual handle | do_dropconnect (handle) noexcept override |
virtual bool | is_ready (handle) const noexcept override |
Public Member Functions inherited from pqxx::connectionpolicy | |
connectionpolicy (const std::string &opts) | |
virtual | ~connectionpolicy () noexcept |
const std::string & | options () const noexcept |
virtual handle | do_disconnect (handle orig) noexcept |
Additional Inherited Members | |
Public Types inherited from pqxx::connectionpolicy | |
using | handle = internal::pq::PGconn * |
Protected Member Functions inherited from pqxx::connectionpolicy | |
handle | normalconnect (handle) |
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.
|
explicit |
The parsing of options is the same as in libpq's PQConnect See: https://www.postgresql.org/docs/10/static/libpq-connect.html
|
overridevirtual |
Reimplemented from pqxx::connectionpolicy.
References pqxx::connectionpolicy::do_disconnect(), do_startconnect(), pqxx::internal::wait_read(), and pqxx::internal::wait_write().
|
overridevirtualnoexcept |
Reimplemented from pqxx::connectionpolicy.
Referenced by do_startconnect().
|
overridevirtual |
Reimplemented from pqxx::connectionpolicy.
References do_dropconnect(), and pqxx::connectionpolicy::options().
Referenced by do_completeconnect().
|
overridevirtualnoexcept |
Reimplemented from pqxx::connectionpolicy.