summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-19 23:03:25 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-19 23:03:31 +0100
commit0e767bec5ef9de7873949638eca4b6375d40add9 (patch)
tree80be03b8154fd6778cc65c5726187e1771607a94 /lib/output/pq
parentRename TableDef to TableOutput (diff)
downloadmygrate-0e767bec5ef9de7873949638eca4b6375d40add9.tar.bz2
mygrate-0e767bec5ef9de7873949638eca4b6375d40add9.tar.xz
mygrate-0e767bec5ef9de7873949638eca4b6375d40add9.zip
Move constructable PqConn
Diffstat (limited to 'lib/output/pq')
-rw-r--r--lib/output/pq/pqConn.h3
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;