Version: 1.0.0
postgresql_preparedstatement_wrapper.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_POSTGRESQL_PREPARED_STATEMENT_WRAPPER_H_
2 #define _WX_DATABASE_POSTGRESQL_PREPARED_STATEMENT_WRAPPER_H_
3 
4 #include "wx/database/wxprec.h"
6 
8 
10 {
11 public:
12  // ctor
13  wxPostgresPreparedStatementWrapper(wxDynamicPostgresInterface* pInterface, PGconn* pDatabase, const wxString& strSQL, const wxString& strStatementName);
14 
15  // dtor
17 
18  // set field
19  void SetParam(int nPosition, int nValue);
20  void SetParam(int nPosition, double dblValue);
21  void SetParam(int nPosition, const wxString& strValue);
22  void SetParam(int nPosition);
23  void SetParam(int nPosition, const void* pData, long nDataLength);
24  void SetParam(int nPosition, const wxDateTime& dateValue);
25  void SetParam(int nPosition, bool bValue);
26  int GetParameterCount();
27 
28  int RunQuery();
30 
31 private:
33  PGconn* m_pDatabase;
34  wxString m_strSQL;
36 
38 };
39 
40 #endif//_WX_DATABASE_POSTGRESQL_PREPARED_STATEMENT_WRAPPER_H_
41 
wxPostgresPreparedStatementWrapper(wxDynamicPostgresInterface *pInterface, PGconn *pDatabase, const wxString &strSQL, const wxString &strStatementName)
wxDatabaseResultSet * RunQueryWithResults()
wxPostgresPreparedStatementParameterCollection m_Parameters
void SetParam(int nPosition, int nValue)