summaryrefslogtreecommitdiff
path: root/lib/output
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output')
-rw-r--r--lib/output/pq/updateDatabase.cpp2
-rw-r--r--lib/output/pq/updateDatabase.h2
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;