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/output/dumpToConsole.cpp | 1 - lib/output/pq/pqConn.cpp | 1 - lib/output/pq/pqConn.h | 4 +++- lib/output/pq/pqStmt.h | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/output') diff --git a/lib/output/dumpToConsole.cpp b/lib/output/dumpToConsole.cpp index 96850f3..949c16f 100644 --- a/lib/output/dumpToConsole.cpp +++ b/lib/output/dumpToConsole.cpp @@ -10,7 +10,6 @@ #include #include #include -#include namespace MyGrate::Output { void diff --git a/lib/output/pq/pqConn.cpp b/lib/output/pq/pqConn.cpp index 81d9610..b3a6ca6 100644 --- a/lib/output/pq/pqConn.cpp +++ b/lib/output/pq/pqConn.cpp @@ -2,7 +2,6 @@ #include "pqBindings.h" #include "pqStmt.h" #include -#include #include #include #include diff --git a/lib/output/pq/pqConn.h b/lib/output/pq/pqConn.h index ae5fc9a..5c9effb 100644 --- a/lib/output/pq/pqConn.h +++ b/lib/output/pq/pqConn.h @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -11,6 +10,9 @@ #include #include +namespace MyGrate { + class DbValue; +} namespace MyGrate::Output::Pq { class PqConn : public DbConn { public: diff --git a/lib/output/pq/pqStmt.h b/lib/output/pq/pqStmt.h index b806617..6531180 100644 --- a/lib/output/pq/pqStmt.h +++ b/lib/output/pq/pqStmt.h @@ -3,13 +3,15 @@ #include "dbConn.h" #include "dbRecordSet.h" -#include "dbTypes.h" #include #include #include #include #include +namespace MyGrate { + class DbValue; +} namespace MyGrate::Output::Pq { class PqConn; -- cgit v1.2.3