summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-05 17:31:57 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-05 17:31:57 +0100
commitc5974cfe2726d8088b08dc52edd4a825dc86e147 (patch)
tree633b6cbe9682da243505b530e13f96761c8a7cb4 /lib/output/pq
parentWrap DbValue in a class so we can add helpers to it (diff)
downloadmygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.tar.bz2
mygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.tar.xz
mygrate-c5974cfe2726d8088b08dc52edd4a825dc86e147.zip
Add conversion operators to get common types from DbValues
Diffstat (limited to 'lib/output/pq')
-rw-r--r--lib/output/pq/pqConn.cpp1
-rw-r--r--lib/output/pq/pqConn.h4
-rw-r--r--lib/output/pq/pqStmt.h4
3 files changed, 6 insertions, 3 deletions
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 <dbConn.h>
-#include <dbTypes.h>
#include <helpers.h>
#include <libpq-fe.h>
#include <memory>
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 <cstddef>
#include <dbConn.h>
-#include <dbTypes.h>
#include <functional>
#include <initializer_list>
#include <libpq-fe.h>
@@ -11,6 +10,9 @@
#include <memory>
#include <string>
+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 <cstddef>
#include <initializer_list>
#include <libpq-fe.h>
#include <memory>
#include <string>
+namespace MyGrate {
+ class DbValue;
+}
namespace MyGrate::Output::Pq {
class PqConn;