diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-03 00:17:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-03 00:17:39 +0100 |
commit | 6e726340e23a97480b17065a633c36a9ba53cf14 (patch) | |
tree | cd9f161a542f85e5cae9119e43c870651431d0ca /lib/input | |
parent | Add event source ptr typedef (diff) | |
download | mygrate-6e726340e23a97480b17065a633c36a9ba53cf14.tar.bz2 mygrate-6e726340e23a97480b17065a633c36a9ba53cf14.tar.xz mygrate-6e726340e23a97480b17065a633c36a9ba53cf14.zip |
Determine parameter mode at point of call by DB type property
It's still constexpr, so that's all good.
Diffstat (limited to 'lib/input')
-rw-r--r-- | lib/input/mysqlConn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/input/mysqlConn.h b/lib/input/mysqlConn.h index 2f71262..29a34db 100644 --- a/lib/input/mysqlConn.h +++ b/lib/input/mysqlConn.h @@ -10,6 +10,8 @@ namespace MyGrate::Input { class MySQLConn : public MYSQL, public DbConn { public: + static constexpr auto paramMode {ParamMode::QMark}; + MySQLConn(const char * const host, const char * const user, const char * const pass, unsigned short port); ~MySQLConn(); |