summaryrefslogtreecommitdiff
path: root/lib/dbStmt.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-01 00:17:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-01 00:17:38 +0100
commit046cdae1a14a686238ab91b1f883335b2de5a78c (patch)
tree3fcf031cc9db3d40d65f6ec989b22d97a2dab11e /lib/dbStmt.h
parentRead test DB connection details from env (diff)
downloadmygrate-046cdae1a14a686238ab91b1f883335b2de5a78c.tar.bz2
mygrate-046cdae1a14a686238ab91b1f883335b2de5a78c.tar.xz
mygrate-046cdae1a14a686238ab91b1f883335b2de5a78c.zip
Generate DbStmt templates from .sql files
m4 generator and related code. Reshuffles some CTF stuff to avoid pulling in all of CTF and iostream for its fixed_string. Moves CTF out of AdHoc namespace. Add some initial SQL statements.
Diffstat (limited to 'lib/dbStmt.h')
-rw-r--r--lib/dbStmt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dbStmt.h b/lib/dbStmt.h
index 3e98b34..81621de 100644
--- a/lib/dbStmt.h
+++ b/lib/dbStmt.h
@@ -1,7 +1,7 @@
#ifndef MYGRATE_DBSTMT_H
#define MYGRATE_DBSTMT_H
-#include <compileTimeFormatter.h>
+#include "fixedString.h"
#include <dbConn.h>
#include <dbRecordSet.h>
#include <memory>
@@ -12,7 +12,7 @@ namespace MyGrate {
class DbConn;
enum class ParamMode { None, DollarNum, QMark };
- template<AdHoc::support::basic_fixed_string S, ParamMode pm = ParamMode::None> class DbStmt {
+ template<Support::basic_fixed_string S, ParamMode pm = ParamMode::None> class DbStmt {
public:
// This don't account for common table expressions, hopefully won't need those :)
static constexpr auto isSelect {S.v().starts_with("SELECT") || S.v().starts_with("SHOW")