diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-06 00:59:03 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-06 00:59:03 +0100 |
commit | 51ac5d2007f1caf6bc6e65b485ba896357696654 (patch) | |
tree | db0566c8ca0c1ba1131e3c22d6cb886c6eefa2fb /lib/input/replStream.cpp | |
parent | Add conversion operators to get common types from DbValues (diff) | |
download | mygrate-51ac5d2007f1caf6bc6e65b485ba896357696654.tar.bz2 mygrate-51ac5d2007f1caf6bc6e65b485ba896357696654.tar.xz mygrate-51ac5d2007f1caf6bc6e65b485ba896357696654.zip |
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.
Diffstat (limited to 'lib/input/replStream.cpp')
-rw-r--r-- | lib/input/replStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <utility> 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} { } |