From d74a7b7aec40d83b940dbfe10850734075aa6c5c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 27 Jun 2021 18:59:21 +0100 Subject: Add an existing table to the config --- lib/output/pq/updateDatabase.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/output/pq/updateDatabase.h') diff --git a/lib/output/pq/updateDatabase.h b/lib/output/pq/updateDatabase.h index 3d3e80d..dd7aaa0 100644 --- a/lib/output/pq/updateDatabase.h +++ b/lib/output/pq/updateDatabase.h @@ -6,6 +6,9 @@ #include #include +namespace MyGrate::Input { + class MySQLConn; +} namespace MyGrate::Output::Pq { struct ColumnDef { std::string name; @@ -35,6 +38,8 @@ namespace MyGrate::Output::Pq { static UpdateDatabase createNew(PqConn *, const char * host, const char * un, const char * pw, unsigned short p, const char * db, int sid, const char * sc); + void addTable(Input::MySQLConn *, const char * tableName); + const uint64_t source; const std::string schema; -- cgit v1.2.3