summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-bind.h
blob: e1dd57f3117337f774bd756f859c2a57707fcf70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef ODBC_BIND_H
#define ODBC_BIND_H

#include <sql.h>
#include <vector>

namespace ODBC {
	class Bind {
	public:
		virtual ~Bind() = default;

		virtual SQLSMALLINT ctype() const = 0; // The C type ID
		virtual SQLULEN size() const = 0; // The size of the data
	protected:
		mutable SQLLEN bindLen; // How much data the driver wants to store
	};
}

#endif