diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-19 23:03:25 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-19 23:03:31 +0100 |
commit | 0e767bec5ef9de7873949638eca4b6375d40add9 (patch) | |
tree | 80be03b8154fd6778cc65c5726187e1771607a94 | |
parent | Rename TableDef to TableOutput (diff) | |
download | mygrate-0e767bec5ef9de7873949638eca4b6375d40add9.tar.bz2 mygrate-0e767bec5ef9de7873949638eca4b6375d40add9.tar.xz mygrate-0e767bec5ef9de7873949638eca4b6375d40add9.zip |
Move constructable PqConn
-rw-r--r-- | lib/output/pq/pqConn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/output/pq/pqConn.h b/lib/output/pq/pqConn.h index 6ee6dc0..dad0e1a 100644 --- a/lib/output/pq/pqConn.h +++ b/lib/output/pq/pqConn.h @@ -26,6 +26,7 @@ namespace MyGrate::Output::Pq { static constexpr auto paramMode {ParamMode::DollarNum}; explicit PqConn(const char * const str); + explicit PqConn(PqConn &&) = default; virtual ~PqConn() = default; void query(const char * const) override; @@ -46,7 +47,7 @@ namespace MyGrate::Output::Pq { static void notice_processor(void *, const char *); virtual void notice_processor(const char *) const; - std::unique_ptr<PGconn, decltype(&PQfinish)> const conn; + std::unique_ptr<PGconn, decltype(&PQfinish)> conn; friend class PqPrepStmt; std::map<std::string, std::string, std::less<>> stmts; |