#include <connectionpolicy.hxx>
Public Types | |
typedef internal::pq::PGconn * | handle |
Public Member Functions | |
connectionpolicy (const std::string &opts) | |
virtual | ~connectionpolicy () PQXX_NOEXCEPT |
const std::string & | options () const PQXX_NOEXCEPT |
virtual handle | do_startconnect (handle orig) |
virtual handle | do_completeconnect (handle orig) |
virtual handle | do_dropconnect (handle orig) PQXX_NOEXCEPT |
virtual handle | do_disconnect (handle orig) PQXX_NOEXCEPT |
virtual bool | is_ready (handle) const PQXX_NOEXCEPT |
Protected Member Functions | |
handle | normalconnect (handle) |
typedef internal::pq::PGconn* pqxx::connectionpolicy::handle |
pqxx::connectionpolicy::connectionpolicy | ( | const std::string & | opts | ) | [explicit] |
pqxx::connectionpolicy::~connectionpolicy | ( | ) | [virtual] |
pqxx::connectionpolicy::handle pqxx::connectionpolicy::do_completeconnect | ( | handle | orig | ) | [virtual] |
Reimplemented in pqxx::connect_lazy, and pqxx::connect_async.
Referenced by pqxx::connection_base::activate().
pqxx::connectionpolicy::handle pqxx::connectionpolicy::do_disconnect | ( | handle | orig | ) | [virtual] |
pqxx::connectionpolicy::handle pqxx::connectionpolicy::do_dropconnect | ( | handle | orig | ) | [virtual] |
Reimplemented in pqxx::connect_async.
pqxx::connectionpolicy::handle pqxx::connectionpolicy::do_startconnect | ( | handle | orig | ) | [virtual] |
Reimplemented in pqxx::connect_direct, and pqxx::connect_async.
Referenced by pqxx::connection_base::activate(), and pqxx::connection_base::init().
bool pqxx::connectionpolicy::is_ready | ( | handle | h | ) | const [virtual] |
Reimplemented in pqxx::connect_async.
Referenced by pqxx::connection_base::init().
pqxx::connectionpolicy::handle pqxx::connectionpolicy::normalconnect | ( | handle | orig | ) | [protected] |
References options().
Referenced by pqxx::connect_lazy::do_completeconnect(), and pqxx::connect_direct::do_startconnect().
const std::string& pqxx::connectionpolicy::options | ( | ) | const |
Referenced by pqxx::connect_async::do_startconnect(), and normalconnect().