diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-24 15:29:12 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-24 15:29:12 +0000 |
commit | 881033464c13398f78be306d8d785616f0947896 (patch) | |
tree | 38a3a320b5dd90a0b377a1b69735546c3ed84057 /libodbcpp/odbc-param_fwd.h | |
parent | Update to new libdbpp interface (diff) | |
download | libdbpp-odbc-881033464c13398f78be306d8d785616f0947896.tar.bz2 libdbpp-odbc-881033464c13398f78be306d8d785616f0947896.tar.xz libdbpp-odbc-881033464c13398f78be306d8d785616f0947896.zip |
Bring inline with clang-tidy checks
Diffstat (limited to 'libodbcpp/odbc-param_fwd.h')
-rw-r--r-- | libodbcpp/odbc-param_fwd.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libodbcpp/odbc-param_fwd.h b/libodbcpp/odbc-param_fwd.h new file mode 100644 index 0000000..88c3dae --- /dev/null +++ b/libodbcpp/odbc-param_fwd.h @@ -0,0 +1,29 @@ +#ifndef ODBC_PARAM_FWD_H +#define ODBC_PARAM_FWD_H + +#include <sqlext.h> +#include "odbc-bind.h" + +namespace ODBC { + class Command; + class Param : public virtual Bind { + public: + Param(); + Param(Command *, unsigned int idx); + void bind() const; + + virtual SQLSMALLINT stype() const = 0; // The SQL type ID + virtual SQLINTEGER dp() const = 0; // The decimal place count + virtual const void * dataAddress() const = 0; // The address of the data + + protected: + friend class Column; + mutable Command * paramCmd; + mutable unsigned int paramIdx; + mutable bool paramBound; // Has SqlBind(...) been called since last change of address? + SQLLEN dataLength; + }; +} + +#endif + |