From 6efd32a3081a4bd228035c5391177b7029d513c0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Jun 2021 00:30:16 +0100 Subject: Add constructor required by clang --- lib/output/pq/updateDatabase.cpp | 2 ++ lib/output/pq/updateDatabase.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib') 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 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; -- cgit v1.2.3