connectionpolicy.hxx
#ifndef PQXX_H_CONNECTIONPOLICY
#define PQXX_H_CONNECTIONPOLICY
#include "pqxx/compiler-public.hxx"
#include "pqxx/compiler-internal-pre.hxx"
#include <string>
#include "pqxx/internal/libpq-forward.hxx"
namespace pqxx
{
class PQXX_LIBEXPORT connectionpolicy
{
public:
using handle = internal::pq::PGconn *;
explicit connectionpolicy(const std::string &opts);
virtual ~connectionpolicy() noexcept;
const std::string &options() const noexcept { return m_options; }
virtual handle do_startconnect(handle orig);
virtual handle do_completeconnect(handle orig);
virtual handle do_dropconnect(handle orig) noexcept;
virtual handle do_disconnect(handle orig) noexcept;
virtual bool is_ready(handle) const noexcept;
protected:
handle normalconnect(handle);
private:
std::string m_options;
};
} // namespace
#include "pqxx/compiler-internal-post.hxx"
#endif
pqxx::connectionpolicy::handle
internal::pq::PGconn * handle
Definition: connectionpolicy.hxx:34
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:25
pqxx::connectionpolicy
Definition: connectionpolicy.hxx:31