diff options
Diffstat (limited to 'lib/output/pq/pqConn.h')
-rw-r--r-- | lib/output/pq/pqConn.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/output/pq/pqConn.h b/lib/output/pq/pqConn.h new file mode 100644 index 0000000..bcf30b6 --- /dev/null +++ b/lib/output/pq/pqConn.h @@ -0,0 +1,20 @@ +#ifndef MYGRATE_OUTPUT_PQ_PQCONN_H +#define MYGRATE_OUTPUT_PQ_PQCONN_H + +#include <libpq-fe.h> + +namespace MyGrate::Output::Pq { + class PqConn { + public: + explicit PqConn(const char * const str); + virtual ~PqConn(); + + private: + static void notice_processor(void *, const char *); + virtual void notice_processor(const char *) const; + + PGconn * const conn; + }; +} + +#endif |