diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-29 00:30:16 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-29 00:30:16 +0100 |
commit | 6efd32a3081a4bd228035c5391177b7029d513c0 (patch) | |
tree | ff3f45453798f825275dfe65202145d67ac19eac | |
parent | Add an existing table to the config (diff) | |
download | mygrate-6efd32a3081a4bd228035c5391177b7029d513c0.tar.bz2 mygrate-6efd32a3081a4bd228035c5391177b7029d513c0.tar.xz mygrate-6efd32a3081a4bd228035c5391177b7029d513c0.zip |
Add constructor required by clang
-rw-r--r-- | lib/output/pq/updateDatabase.cpp | 2 | ||||
-rw-r--r-- | lib/output/pq/updateDatabase.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp index 389d47a..f804385 100644 --- a/lib/output/pq/updateDatabase.cpp +++ b/lib/output/pq/updateDatabase.cpp @@ -22,6 +22,8 @@ #include <streamSupport.h> namespace MyGrate::Output::Pq { + ColumnDef::ColumnDef(std::string n, std::size_t o, bool p) : name {std::move(n)}, ordinal(o), is_pk(p) { } + UpdateDatabase::UpdateDatabase(const char * const str, uint64_t s) : PqConn {str}, source {s}, schema(**output::pq::sql::selectSourceSchema::execute(this, s)) { diff --git a/lib/output/pq/updateDatabase.h b/lib/output/pq/updateDatabase.h index dd7aaa0..5762d18 100644 --- a/lib/output/pq/updateDatabase.h +++ b/lib/output/pq/updateDatabase.h @@ -11,6 +11,8 @@ namespace MyGrate::Input { } namespace MyGrate::Output::Pq { struct ColumnDef { + ColumnDef(std::string, std::size_t, bool); + std::string name; std::size_t ordinal; bool is_pk; |