Version: 1.0.0
mysql_preparedstatement_wrapper.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_MYSQL_PREPARED_STATEMENT_WRAPPER_H_
2 #define _WX_DATABASE_MYSQL_PREPARED_STATEMENT_WRAPPER_H_
3 
4 #include "wx/database/wxprec.h"
6 
8 
10 {
11 public:
12  // ctor
13  wxMysqlPreparedStatementWrapper(wxMysqlDynamicInterface* pInterface, MYSQL_STMT* pStatement);
14 
15  // dtor
17 
18  void Close();
19 
20  // set field
21  void SetParam(int nPosition, int nValue);
22  void SetParam(int nPosition, double dblValue);
23  void SetParam(int nPosition, const wxString& strValue);
24  void SetParam(int nPosition);
25  void SetParam(int nPosition, const void* pData, long nDataLength);
26  void SetParam(int nPosition, const wxDateTime& dateValue);
27  void SetParam(int nPosition, bool bValue);
28  int GetParameterCount();
29 
30  int RunQuery();
32 
33 private:
35  MYSQL_STMT* m_pStatement;
36 
38 };
39 
40 #endif//_WX_DATABASE_MYSQL_PREPARED_STATEMENT_WRAPPER_H_
41 
wxMysqlPreparedStatementWrapper(wxMysqlDynamicInterface *pInterface, MYSQL_STMT *pStatement)
wxMysqlPreparedStatementParameterCollection m_Parameters
wxDatabaseResultSet * RunQueryWithResults()
void SetParam(int nPosition, int nValue)