diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-03 00:19:50 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-03 00:19:50 +0100 |
commit | 88708a8aa6a33f265ff990102b44a9a51e3bf4bb (patch) | |
tree | 8e59a73be6366e3237c473834852a276f07a9963 /lib/input/replStream.h | |
parent | Determine parameter mode at point of call by DB type property (diff) | |
download | mygrate-88708a8aa6a33f265ff990102b44a9a51e3bf4bb.tar.bz2 mygrate-88708a8aa6a33f265ff990102b44a9a51e3bf4bb.tar.xz mygrate-88708a8aa6a33f265ff990102b44a9a51e3bf4bb.zip |
Get upstream from DB
Adds options from command line and a few supporting tweaks
Diffstat (limited to 'lib/input/replStream.h')
-rw-r--r-- | lib/input/replStream.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/input/replStream.h b/lib/input/replStream.h index 4b1a7b6..01c9ef3 100644 --- a/lib/input/replStream.h +++ b/lib/input/replStream.h @@ -2,7 +2,9 @@ #define MYGRATE_INPUT_REPLSTREAM_H #include "mysqlConn.h" +#include <cstdint> #include <eventSourceBase.h> +#include <string> namespace MyGrate { class EventHandlerBase; @@ -11,9 +13,15 @@ namespace MyGrate { namespace MyGrate::Input { class ReplicationStream : public EventSourceBase, MySQLConn { public: - using MySQLConn::MySQLConn; + ReplicationStream(const char * const host, const char * const user, const char * const pass, + unsigned short port, uint64_t serverid, std::string filename, uint64_t position); void readEvents(EventHandlerBase &) override; + + private: + uint64_t serverid; + std::string filename; + uint64_t position; }; } |