Version: 1.0.0
odbc_inteface.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_ODBC_INTERFACES_H_
2 #define _WX_DATABASE_ODBC_INTERFACES_H_
3 
4 #include "wx/database/wxprec.h"
5 
6 #include "wx/dynlib.h"
7 
8 typedef SQLRETURN (SQL_API *SQLAllocHandleType)(SQLSMALLINT, SQLHANDLE, SQLHANDLE*);
9 typedef SQLRETURN (SQL_API *SQLSetEnvAttrType)(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER);
10 typedef SQLRETURN (SQL_API *SQLFreeHandleType)(SQLSMALLINT, SQLHANDLE);
11 typedef SQLRETURN (SQL_API *SQLConnectType)(SQLHDBC, SQLTCHAR*, SQLSMALLINT,
12  SQLTCHAR*, SQLSMALLINT, SQLTCHAR*, SQLSMALLINT);
13 typedef SQLRETURN (SQL_API *SQLDriverConnectType)(SQLHDBC, SQLHWND, SQLTCHAR*,
14  SQLSMALLINT, SQLTCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLUSMALLINT);
15 typedef SQLRETURN (SQL_API *SQLDisconnectType)(SQLHDBC);
16 typedef SQLRETURN (SQL_API *SQLSetConnectAttrType)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER);
17 typedef SQLRETURN (SQL_API *SQLEndTranType)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT);
18 typedef SQLRETURN (SQL_API *SQLPrepareType)(SQLHSTMT, SQLTCHAR*, SQLINTEGER);
19 typedef SQLRETURN (SQL_API *SQLFreeStmtType)(SQLHSTMT, SQLUSMALLINT);
20 typedef SQLRETURN (SQL_API *SQLTablesType)(SQLHSTMT, SQLTCHAR*, SQLSMALLINT, SQLTCHAR*,
21  SQLSMALLINT, SQLTCHAR*, SQLSMALLINT, SQLTCHAR*, SQLSMALLINT);
22 typedef SQLRETURN (SQL_API *SQLFetchType)(SQLHSTMT);
23 typedef SQLRETURN (SQL_API *SQLGetDataType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT,
24  SQLPOINTER, SQLLEN, SQLLEN*);
25 typedef SQLRETURN (SQL_API *SQLColumnsType)(SQLHSTMT, SQLTCHAR*, SQLSMALLINT, SQLTCHAR*,
26  SQLSMALLINT, SQLTCHAR*, SQLSMALLINT, SQLTCHAR*, SQLSMALLINT);
27 typedef SQLRETURN (SQL_API *SQLGetDiagRecType)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLTCHAR*,
28  SQLINTEGER*, SQLTCHAR*, SQLSMALLINT, SQLSMALLINT*);
29 typedef SQLRETURN (SQL_API *SQLNumParamsType)(SQLHSTMT, SQLSMALLINT*);
30 typedef SQLRETURN (SQL_API *SQLExecuteType)(SQLHSTMT);
31 typedef SQLRETURN (SQL_API *SQLParamDataType)(SQLHSTMT, SQLPOINTER*);
32 typedef SQLRETURN (SQL_API *SQLPutDataType)(SQLHSTMT, SQLPOINTER, SQLLEN);
33 typedef SQLRETURN (SQL_API *SQLRowCountType)(SQLHSTMT, SQLLEN*);
34 typedef SQLRETURN (SQL_API *SQLNumResultColsType)(SQLHSTMT, SQLSMALLINT*);
35 typedef SQLRETURN (SQL_API *SQLDescribeParamType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT*,
36  SQLULEN*, SQLSMALLINT*, SQLSMALLINT*);
37 typedef SQLRETURN (SQL_API *SQLBindParameterType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT,
38  SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*);
39 typedef SQLRETURN (SQL_API *SQLColAttributesType)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT,
40  SQLPOINTER, SQLSMALLINT, SQLSMALLINT*, SQLLEN*);
41 typedef SQLRETURN (SQL_API *SQLColAttributeType)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT,
42  SQLPOINTER, SQLSMALLINT, SQLSMALLINT*, SQLPOINTER);
43 typedef SQLRETURN (SQL_API *SQLDescribeColType)(SQLHSTMT, SQLUSMALLINT, SQLTCHAR*, SQLSMALLINT,
44  SQLSMALLINT*, SQLSMALLINT*, SQLULEN*, SQLSMALLINT*, SQLSMALLINT*);
45 
46 
48 public:
50  bool Init();
51 
79 
80 
81 private:
82  wxDynamicLibrary m_OdbcDLL;
83 
111 };
112 
113 #endif//_WX_DATABASE_ODBC_INTERFACES_H_
SQLColumnsType GetSQLColumns()
Definition: odbc_inteface.h:65
SQLDescribeParamType m_pSQLDescribeParam
SQLFreeStmtType GetSQLFreeStmt()
Definition: odbc_inteface.h:61
SQLExecuteType m_pSQLExecute
SQLDescribeColType m_pSQLDescribeCol
SQLRETURN(SQL_API * SQLConnectType)(SQLHDBC, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT)
Definition: odbc_inteface.h:11
SQLDescribeColType GetSQLDescribeCol()
Definition: odbc_inteface.h:78
SQLBindParameterType m_pSQLBindParameter
SQLGetDataType m_pSQLGetData
Definition: odbc_inteface.h:96
SQLSetEnvAttrType m_pSQLSetEnvAttr
Definition: odbc_inteface.h:85
SQLAllocHandleType GetSQLAllocHandle()
Definition: odbc_inteface.h:52
SQLRowCountType GetSQLRowCount()
Definition: odbc_inteface.h:72
SQLFetchType m_pSQLFetch
Definition: odbc_inteface.h:95
SQLNumResultColsType GetSQLNumResultCols()
Definition: odbc_inteface.h:73
SQLRETURN(SQL_API * SQLColAttributesType)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLLEN *)
Definition: odbc_inteface.h:39
SQLFreeStmtType m_pSQLFreeStmt
Definition: odbc_inteface.h:93
SQLRETURN(SQL_API * SQLGetDataType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: odbc_inteface.h:23
SQLNumParamsType m_pSQLNumParams
SQLRETURN(SQL_API * SQLNumResultColsType)(SQLHSTMT, SQLSMALLINT *)
Definition: odbc_inteface.h:34
SQLRETURN(SQL_API * SQLTablesType)(SQLHSTMT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT)
Definition: odbc_inteface.h:20
SQLRETURN(SQL_API * SQLPrepareType)(SQLHSTMT, SQLTCHAR *, SQLINTEGER)
Definition: odbc_inteface.h:18
SQLRETURN(SQL_API * SQLDisconnectType)(SQLHDBC)
Definition: odbc_inteface.h:15
SQLConnectType GetSQLConnect()
Definition: odbc_inteface.h:55
SQLRETURN(SQL_API * SQLEndTranType)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT)
Definition: odbc_inteface.h:17
SQLDisconnectType m_pSQLDisconnect
Definition: odbc_inteface.h:89
SQLColumnsType GetSQLPKColumns()
Definition: odbc_inteface.h:66
SQLSetConnectAttrType m_pSQLSetConnectAttr
Definition: odbc_inteface.h:90
SQLDisconnectType GetSQLDisconnect()
Definition: odbc_inteface.h:57
SQLBindParameterType GetSQLBindParameter()
Definition: odbc_inteface.h:75
SQLColumnsType m_pSQLPKColumns
Definition: odbc_inteface.h:98
SQLColAttributeType GetSQLColAttribute()
Definition: odbc_inteface.h:77
SQLRETURN(SQL_API * SQLFreeStmtType)(SQLHSTMT, SQLUSMALLINT)
Definition: odbc_inteface.h:19
SQLSetEnvAttrType GetSQLSetEnvAttr()
Definition: odbc_inteface.h:53
SQLPutDataType m_pSQLPutData
SQLDescribeParamType GetSQLDescribeParam()
Definition: odbc_inteface.h:74
SQLTablesType m_pSQLTables
Definition: odbc_inteface.h:94
SQLTablesType GetSQLTables()
Definition: odbc_inteface.h:62
SQLRETURN(SQL_API * SQLDescribeParamType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: odbc_inteface.h:35
SQLConnectType m_pSQLConnect
Definition: odbc_inteface.h:87
SQLRETURN(SQL_API * SQLExecuteType)(SQLHSTMT)
Definition: odbc_inteface.h:30
SQLRETURN(SQL_API * SQLRowCountType)(SQLHSTMT, SQLLEN *)
Definition: odbc_inteface.h:33
SQLRETURN(SQL_API * SQLFreeHandleType)(SQLSMALLINT, SQLHANDLE)
Definition: odbc_inteface.h:10
SQLGetDiagRecType m_pSQLGetDiagRec
Definition: odbc_inteface.h:99
SQLRETURN(SQL_API * SQLDescribeColType)(SQLHSTMT, SQLUSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLSMALLINT *, SQLULEN *, SQLSMALLINT *, SQLSMALLINT *)
Definition: odbc_inteface.h:43
SQLRETURN(SQL_API * SQLPutDataType)(SQLHSTMT, SQLPOINTER, SQLLEN)
Definition: odbc_inteface.h:32
SQLColAttributesType GetSQLColAttributes()
Definition: odbc_inteface.h:76
SQLPrepareType GetSQLPrepare()
Definition: odbc_inteface.h:60
SQLColumnsType m_pSQLColumns
Definition: odbc_inteface.h:97
SQLExecuteType GetSQLExecute()
Definition: odbc_inteface.h:69
SQLEndTranType GetSQLEndTran()
Definition: odbc_inteface.h:59
SQLRETURN(SQL_API * SQLGetDiagRecType)(SQLSMALLINT, SQLHANDLE, SQLSMALLINT, SQLTCHAR *, SQLINTEGER *, SQLTCHAR *, SQLSMALLINT, SQLSMALLINT *)
Definition: odbc_inteface.h:27
SQLColAttributesType m_pSQLColAttributes
SQLRETURN(SQL_API * SQLColAttributeType)(SQLHSTMT, SQLUSMALLINT, SQLUSMALLINT, SQLPOINTER, SQLSMALLINT, SQLSMALLINT *, SQLPOINTER)
Definition: odbc_inteface.h:41
SQLDriverConnectType GetSQLDriverConnect()
Definition: odbc_inteface.h:56
SQLSetConnectAttrType GetSQLSetConnectAttr()
Definition: odbc_inteface.h:58
SQLPutDataType GetSQLPutData()
Definition: odbc_inteface.h:71
SQLParamDataType m_pSQLParamData
SQLRETURN(SQL_API * SQLNumParamsType)(SQLHSTMT, SQLSMALLINT *)
Definition: odbc_inteface.h:29
SQLAllocHandleType m_pSQLAllocHandle
Definition: odbc_inteface.h:84
wxDynamicLibrary m_OdbcDLL
Definition: odbc_inteface.h:82
SQLNumParamsType GetSQLNumParams()
Definition: odbc_inteface.h:68
SQLFetchType GetSQLFetch()
Definition: odbc_inteface.h:63
SQLRETURN(SQL_API * SQLAllocHandleType)(SQLSMALLINT, SQLHANDLE, SQLHANDLE *)
Definition: odbc_inteface.h:8
SQLGetDiagRecType GetSQLGetDiagRec()
Definition: odbc_inteface.h:67
SQLRETURN(SQL_API * SQLFetchType)(SQLHSTMT)
Definition: odbc_inteface.h:22
SQLParamDataType GetSQLParamData()
Definition: odbc_inteface.h:70
SQLGetDataType GetSQLGetData()
Definition: odbc_inteface.h:64
SQLRETURN(SQL_API * SQLSetEnvAttrType)(SQLHENV, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: odbc_inteface.h:9
SQLRETURN(SQL_API * SQLColumnsType)(SQLHSTMT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT)
Definition: odbc_inteface.h:25
SQLColAttributeType m_pSQLColAttribute
SQLFreeHandleType m_pSQLFreeHandle
Definition: odbc_inteface.h:86
SQLPrepareType m_pSQLPrepare
Definition: odbc_inteface.h:92
SQLRETURN(SQL_API * SQLParamDataType)(SQLHSTMT, SQLPOINTER *)
Definition: odbc_inteface.h:31
SQLRETURN(SQL_API * SQLBindParameterType)(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN *)
Definition: odbc_inteface.h:37
SQLRowCountType m_pSQLRowCount
SQLRETURN(SQL_API * SQLDriverConnectType)(SQLHDBC, SQLHWND, SQLTCHAR *, SQLSMALLINT, SQLTCHAR *, SQLSMALLINT, SQLSMALLINT *, SQLUSMALLINT)
Definition: odbc_inteface.h:13
SQLEndTranType m_pSQLEndTran
Definition: odbc_inteface.h:91
SQLDriverConnectType m_pSQLDriverConnect
Definition: odbc_inteface.h:88
SQLRETURN(SQL_API * SQLSetConnectAttrType)(SQLHDBC, SQLINTEGER, SQLPOINTER, SQLINTEGER)
Definition: odbc_inteface.h:16
SQLNumResultColsType m_pSQLNumResultCols
SQLFreeHandleType GetSQLFreeHandle()
Definition: odbc_inteface.h:54