diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-24 01:01:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-24 01:01:30 +0100 |
commit | 15c1e5566f7ad8448985ca6e52805ceb4ec389a8 (patch) | |
tree | 14908b221d01cca00975da84656adcea57898620 /lib/dbConn.h | |
parent | Minor tidy up of replStream (diff) | |
download | mygrate-15c1e5566f7ad8448985ca6e52805ceb4ec389a8.tar.bz2 mygrate-15c1e5566f7ad8448985ca6e52805ceb4ec389a8.tar.xz mygrate-15c1e5566f7ad8448985ca6e52805ceb4ec389a8.zip |
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.
Diffstat (limited to 'lib/dbConn.h')
-rw-r--r-- | lib/dbConn.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/dbConn.h b/lib/dbConn.h new file mode 100644 index 0000000..26b9a64 --- /dev/null +++ b/lib/dbConn.h @@ -0,0 +1,14 @@ +#ifndef MYGRATE_DBCONN_H +#define MYGRATE_DBCONN_H + +#include <dbTypes.h> +#include <initializer_list> + +namespace MyGrate { + class DbConn { + virtual void query(const char * const) = 0; + virtual void query(const char * const, const std::initializer_list<DbValue> &) = 0; + }; +} + +#endif |