From 15c1e5566f7ad8448985ca6e52805ceb4ec389a8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 24 May 2021 01:01:30 +0100 Subject: Basic support for queries with bound parameters Bit of a reshuffle to make the types not DB specific, add some basic tests over query execution, no selects yet and no validation anything is actually right. --- lib/streamSupport.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'lib/streamSupport.h') diff --git a/lib/streamSupport.h b/lib/streamSupport.h index 60e68d3..cab62e6 100644 --- a/lib/streamSupport.h +++ b/lib/streamSupport.h @@ -11,14 +11,8 @@ #include namespace MyGrate { class BitSet; -} -namespace MyGrate::MySQL { struct Date; -} -namespace MyGrate::MySQL { struct DateTime; -} -namespace MyGrate::MySQL { struct Time; } struct timespec; @@ -33,11 +27,11 @@ namespace std { std::ostream & operator<<(std::ostream & s, const timespec & ts); - std::ostream & operator<<(std::ostream & s, const MyGrate::MySQL::Date & d); + std::ostream & operator<<(std::ostream & s, const MyGrate::Date & d); - std::ostream & operator<<(std::ostream & s, const MyGrate::MySQL::Time & t); + std::ostream & operator<<(std::ostream & s, const MyGrate::Time & t); - std::ostream & operator<<(std::ostream & s, const MyGrate::MySQL::DateTime & dt); + std::ostream & operator<<(std::ostream & s, const MyGrate::DateTime & dt); std::ostream & operator<<(std::ostream & s, const MyGrate::BitSet & bs); -- cgit v1.2.3