From 8c2fab2a2e6a98e9b7e734703ef8cc4335e1fdac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Jul 2021 17:08:40 +0100 Subject: before and afterEvents virtual/protected --- lib/output/pq/updateDatabase.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/output/pq/updateDatabase.h b/lib/output/pq/updateDatabase.h index a7188e3..130e4a7 100644 --- a/lib/output/pq/updateDatabase.h +++ b/lib/output/pq/updateDatabase.h @@ -62,13 +62,14 @@ namespace MyGrate::Output::Pq { const std::string schema; const std::string database; + protected: + virtual void beforeEvent(const MariaDB_Event_Ptr & e); + virtual void afterEvent(const MariaDB_Event_Ptr & e); + private: UpdateDatabase(PqConn &&, uint64_t source); UpdateDatabase(PqConn &&, uint64_t source, RecordSetPtr cfg); - void beforeEvent(const MariaDB_Event_Ptr & e); - void afterEvent(const MariaDB_Event_Ptr & e); - static void verifyRow(const MariaDB_Event_Ptr & e, const TableDefPtr &); static void copyAll(const Row & r, std::back_insert_iterator> &&); static void copyKeys(const Row & r, const TableDefPtr &, std::back_insert_iterator> &&); -- cgit v1.2.3