1 #ifndef _WX_DATABASE_SQLITE_DATABASE_H_ 2 #define _WX_DATABASE_SQLITE_DATABASE_H_ 20 virtual bool Open(
const wxString& strDatabase);
21 virtual bool Open(
const wxString& strDatabase,
bool mustExist);
35 virtual int RunQuery(
const wxString& strQuery,
bool bParseQuery);
47 virtual wxArrayString
GetColumns(
const wxString& table);
48 virtual wxArrayString
GetPKColumns(
const wxString& table);
50 static int TranslateErrorCode(
int nCode);
58 #endif//_WX_DATABASE_SQLITE_DATABASE_H_ virtual wxArrayString GetPKColumns(const wxString &table)=0
get Primary keys column names
virtual wxArrayString GetViews()=0
Retrieve all view names.
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.
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.
wxSqliteDatabase(void *pDatabase)
#define WXDLLIMPEXP_DATABASE
virtual wxArrayString GetTables()=0
Retrieve all table names.
virtual wxDatabaseResultSet * RunQueryWithResults(const wxString &strQuery)=0
Run a select query on the database.