From 51ac5d2007f1caf6bc6e65b485ba896357696654 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Jun 2021 00:59:03 +0100 Subject: Add RecordSet RowView This represents a view into a recordset by row number and provides easy access to values in a column by index and the ability to create a new object instance by N columns which are passed to the object's constructor. --- lib/input/replStream.cpp | 4 ++-- lib/input/replStream.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/input') diff --git a/lib/input/replStream.cpp b/lib/input/replStream.cpp index c3dea9a..1ec696a 100644 --- a/lib/input/replStream.cpp +++ b/lib/input/replStream.cpp @@ -9,9 +9,9 @@ #include namespace MyGrate::Input { - ReplicationStream::ReplicationStream(const char * const host, const char * const user, const char * const pass, + ReplicationStream::ReplicationStream(const std::string & host, const std::string & user, const std::string & pass, unsigned short port, uint64_t sid, std::string fn, uint64_t pos) : - MySQLConn {host, user, pass, port}, + MySQLConn {host.c_str(), user.c_str(), pass.c_str(), port}, serverid {sid}, filename {std::move(fn)}, position {pos} { } diff --git a/lib/input/replStream.h b/lib/input/replStream.h index 01c9ef3..bc47267 100644 --- a/lib/input/replStream.h +++ b/lib/input/replStream.h @@ -13,7 +13,7 @@ namespace MyGrate { namespace MyGrate::Input { class ReplicationStream : public EventSourceBase, MySQLConn { public: - ReplicationStream(const char * const host, const char * const user, const char * const pass, + ReplicationStream(const std::string & host, const std::string & user, const std::string & pass, unsigned short port, uint64_t serverid, std::string filename, uint64_t position); void readEvents(EventHandlerBase &) override; -- cgit v1.2.3