1 #ifndef _WX_DATABASE_MYSQL_DATABASE_H_ 2 #define _WX_DATABASE_MYSQL_DATABASE_H_ 6 #ifndef DONT_USE_DYNAMIC_DATABASE_LINKING 25 wxMysqlDatabase(
const wxString& strServer,
const wxString& strDatabase);
26 wxMysqlDatabase(
const wxString& strDatabase,
const wxString& strUser,
const wxString& strPassword);
27 wxMysqlDatabase(
const wxString& strServer,
const wxString& strDatabase,
const wxString& strUser,
const wxString& strPassword);
34 virtual bool Open(
const wxString& strDatabase);
35 virtual bool Open(
const wxString& strServer,
const wxString& strDatabase);
36 virtual bool Open(
const wxString& strDatabase,
const wxString& strUser,
const wxString& strPassword);
37 virtual bool Open(
const wxString& strServer,
const wxString& strDatabase,
const wxString& strUser,
const wxString& strPassword);
55 virtual int RunQuery(
const wxString& strQuery,
bool bParseQuery);
66 virtual wxArrayString
GetColumns(
const wxString& table);
67 virtual wxArrayString
GetPKColumns(
const wxString& table);
69 static int TranslateErrorCode(
int nCode);
70 static bool IsAvailable();
74 void ParseServerAndPort(
const wxString& strServer);
76 #ifndef DONT_USE_DYNAMIC_DATABASE_LINKING 92 #endif//_WX_DATABASE_MYSQL_DATABASE_H_ virtual bool ChangeDatabase(const wxString &database)
virtual wxArrayString GetPKColumns(const wxString &table)=0
get Primary keys column names
virtual wxArrayString GetViews()=0
Retrieve all view names.
wxDatabaseResultSetHashSet m_ResultSets
virtual wxPreparedStatement * PrepareStatement(const wxString &strQuery)=0
Prepare a SQL statement which can be reused with different parameters.
virtual void RollBack()=0
Rollback the current transaction.
virtual bool IsOpen()=0
Is the connection to the database open?
virtual int RunQuery(const wxString &strQuery)
Run an insert, update, or delete query on the database.
virtual void BeginTransaction()=0
Begin a transaction.
wxMysqlDatabase(void *pDatabase)
virtual bool Open(const wxString &strDatabase)=0
virtual bool ViewExists(const wxString &view)=0
Check for the existence of a view by name.
virtual void Commit()=0
Commit the current transaction.
virtual wxArrayString GetColumns(const wxString &table)=0
Retrieve all column names for a table.
virtual bool Close()=0
close database
virtual bool TableExists(const wxString &table)=0
Check for the existence of a table by name.
WX_DECLARE_VOIDPTR_HASH_MAP(void *, PointerLookupMap)
#define WXDLLIMPEXP_DATABASE
wxMysqlDynamicInterface * m_pInterface
virtual wxArrayString GetTables()=0
Retrieve all table names.
virtual wxDatabaseResultSet * RunQueryWithResults(const wxString &strQuery)=0
Run a select query on the database.