libpqxx
5.0
|
Lazy connection policy; causes connection to be deferred until first use. More...
#include <connection.hxx>
Public Member Functions | |
connect_lazy (const std::string &opts) | |
virtual handle | do_completeconnect (handle) PQXX_OVERRIDE |
![]() | |
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_dropconnect (handle orig) PQXX_NOEXCEPT |
virtual handle | do_disconnect (handle orig) PQXX_NOEXCEPT |
virtual bool | is_ready (handle) const PQXX_NOEXCEPT |
Additional Inherited Members | |
![]() | |
typedef internal::pq::PGconn * | handle |
![]() | |
handle | normalconnect (handle) |
Lazy connection policy; causes connection to be deferred until first use.
This is connect_direct's lazy younger brother. It does not attempt to open a connection right away; the connection is only created when it is actually used.
|
explicit |
|
virtual |
Reimplemented from pqxx::connectionpolicy.