From c5974cfe2726d8088b08dc52edd4a825dc86e147 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 5 Jun 2021 17:31:57 +0100 Subject: Add conversion operators to get common types from DbValues --- lib/input/mysqlConn.cpp | 1 - lib/input/mysqlConn.h | 4 +++- lib/input/mysqlStmt.h | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/input') 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 #include #include -#include #include #include #include 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 #include -#include #include #include +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 #include #include #include +namespace MyGrate { + class DbValue; +} namespace MyGrate::Input { using StmtPtr = std::unique_ptr; -- cgit v1.2.3