summaryrefslogtreecommitdiff
path: root/libodbcpp/bind.h
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/bind.h')
-rw-r--r--libodbcpp/bind.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libodbcpp/bind.h b/libodbcpp/bind.h
new file mode 100644
index 0000000..36c7584
--- /dev/null
+++ b/libodbcpp/bind.h
@@ -0,0 +1,29 @@
+#ifndef ODBC_BIND_H
+#define ODBC_BIND_H
+
+#include <sql.h>
+
+namespace ODBC {
+ class BindBase {
+ public:
+ BindBase();
+ virtual ~BindBase() {}
+ SQLINTEGER length() const;
+ SQLUINTEGER size() const;
+ bool isNull() const;
+ private:
+ SQLUINTEGER bindSize; // Allocated memory
+ SQLINTEGER bindLen; // Used memory
+ friend class Param;
+ friend class Column;
+ };
+ template <class t>
+ class Bind {
+ public:
+ virtual ~Bind() {}
+ t value;
+ };
+}
+
+#endif
+