1 #ifndef _WX_DATABASE_MYSQL_PREPARED_STATEMENT_H_ 2 #define _WX_DATABASE_MYSQL_PREPARED_STATEMENT_H_ 26 virtual void SetParamInt(
int nPosition,
int nValue);
28 virtual void SetParamString(
int nPosition,
const wxString& strValue);
30 virtual void SetParamBlob(
int nPosition,
const void* pData,
long nDataLength);
31 virtual void SetParamDate(
int nPosition,
const wxDateTime& dateValue);
45 #endif//_WX_DATABASE_MYSQL_PREPARED_STATEMENT_H_
virtual int GetParameterCount()
virtual void SetParamString(int nPosition, const wxString &strValue)
Set the parameter at the 1-based position to a wxString value.
virtual void SetParamNull(int nPosition)
Set the parameter at the 1-based position to a NULL value.
virtual void SetParamDate(int nPosition, const wxDateTime &dateValue)
Set the parameter at the 1-based position to a wxDateTime value.
virtual int RunQuery()
Run an insert, update, or delete query on the database.
WX_DEFINE_ARRAY_PTR(wxMysqlPreparedStatementWrapper *, MysqlStatementWrapperArray)
virtual void Close()
Close the result set (call wxDatabase::ClosePreparedStatement() instead on the statement)
virtual ~wxMysqlPreparedStatement()
virtual void SetParamBool(int nPosition, bool bValue)
Set the parameter at the 1-based position to a boolean value.
wxMysqlDynamicInterface * m_pInterface
virtual void SetParamInt(int nPosition, int nValue)
Set the parameter at the 1-based position to an int value.
void AddPreparedStatement(MYSQL_STMT *pStatement)
int FindStatementAndAdjustPositionIndex(int *pPosition)
MysqlStatementWrapperArray m_Statements
virtual void SetParamBlob(int nPosition, const void *pData, long nDataLength)
Set the parameter at the 1-based position to a Blob value.
wxMysqlPreparedStatement(wxMysqlDynamicInterface *pInterface)
virtual wxDatabaseResultSet * RunQueryWithResults()
Run an insert, update, or delete query on the database.
virtual void SetParamDouble(int nPosition, double dblValue)
Set the parameter at the 1-based position to a double value.