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/output | |
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/output')
-rw-r--r-- | lib/output/dumpToConsole.cpp | 1 | ||||
-rw-r--r-- | lib/output/pq/pqConn.cpp | 1 | ||||
-rw-r--r-- | lib/output/pq/pqConn.h | 4 | ||||
-rw-r--r-- | lib/output/pq/pqStmt.h | 4 |
4 files changed, 6 insertions, 4 deletions
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 <row.h> #include <streamSupport.h> #include <utility> -#include <variant> 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 <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; |