diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-05 17:31:57 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-05 17:31:57 +0100 |
commit | c5974cfe2726d8088b08dc52edd4a825dc86e147 (patch) | |
tree | 633b6cbe9682da243505b530e13f96761c8a7cb4 /lib/input | |
parent | Wrap DbValue in a class so we can add helpers to it (diff) | |
download | mygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.tar.bz2 mygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.tar.xz mygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.zip |
Add conversion operators to get common types from DbValues
Diffstat (limited to 'lib/input')
-rw-r--r-- | lib/input/mysqlConn.cpp | 1 | ||||
-rw-r--r-- | lib/input/mysqlConn.h | 4 | ||||
-rw-r--r-- | lib/input/mysqlStmt.h | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/input/mysqlConn.cpp b/lib/input/mysqlConn.cpp index 46ed7c6..4899deb 100644 --- a/lib/input/mysqlConn.cpp +++ b/lib/input/mysqlConn.cpp @@ -4,7 +4,6 @@ #include <cstddef> #include <cstring> #include <dbConn.h> -#include <dbTypes.h> #include <helpers.h> #include <memory> #include <mysql.h> diff --git a/lib/input/mysqlConn.h b/lib/input/mysqlConn.h index 29a34db..db30ff0 100644 --- a/lib/input/mysqlConn.h +++ b/lib/input/mysqlConn.h @@ -3,10 +3,12 @@ #include <cstddef> #include <dbConn.h> -#include <dbTypes.h> #include <initializer_list> #include <mysql.h> +namespace MyGrate { + class DbValue; +} namespace MyGrate::Input { class MySQLConn : public MYSQL, public DbConn { public: diff --git a/lib/input/mysqlStmt.h b/lib/input/mysqlStmt.h index a42e0db..69e62d4 100644 --- a/lib/input/mysqlStmt.h +++ b/lib/input/mysqlStmt.h @@ -3,12 +3,14 @@ #include "dbConn.h" #include "dbRecordSet.h" -#include "dbTypes.h" #include <cstddef> #include <initializer_list> #include <memory> #include <mysql.h> +namespace MyGrate { + class DbValue; +} namespace MyGrate::Input { using StmtPtr = std::unique_ptr<MYSQL_STMT, decltype(&mysql_stmt_close)>; |