diff options
Diffstat (limited to 'lib/output/pq/pqConn.h')
-rw-r--r-- | lib/output/pq/pqConn.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/output/pq/pqConn.h b/lib/output/pq/pqConn.h index 5c9effb..b8609ea 100644 --- a/lib/output/pq/pqConn.h +++ b/lib/output/pq/pqConn.h @@ -14,6 +14,12 @@ namespace MyGrate { class DbValue; } namespace MyGrate::Output::Pq { + class PqErr : public std::runtime_error { + public: + PqErr(const std::string & when, PGconn *); + PqErr(const std::string & when, PGresult *); + }; + class PqConn : public DbConn { public: static constexpr auto paramMode {ParamMode::DollarNum}; |