#include "pqConn.h" #include #include namespace MyGrate::Output::Pq { PqConn::PqConn(const char * const str) : conn {PQconnectdb(str)} { verify(PQstatus(conn) == CONNECTION_OK, "Connection failure"); PQsetNoticeProcessor(conn, notice_processor, this); } PqConn::~PqConn() { PQfinish(conn); } void PqConn::notice_processor(void * p, const char * n) { return static_cast(p)->notice_processor(n); } void PqConn::notice_processor(const char *) const { } }