|
| wxOdbcDatabase () |
|
virtual | ~wxOdbcDatabase () |
|
virtual bool | Open () |
|
virtual bool | Open (const wxString &strConnection) |
|
virtual bool | Open (const wxString &strDSN, const wxString &strUser, const wxString &strPassword) |
|
virtual bool | Close () |
| close database More...
|
|
virtual bool | IsOpen () |
| Is the connection to the database open? More...
|
|
virtual void | BeginTransaction () |
| Begin a transaction. More...
|
|
virtual void | Commit () |
| Commit the current transaction. More...
|
|
virtual void | RollBack () |
| Rollback the current transaction. More...
|
|
virtual int | RunQuery (const wxString &strQuery, bool bParseQuery) |
| Run an insert, update, or delete query on the database. More...
|
|
virtual wxDatabaseResultSet * | RunQueryWithResults (const wxString &strQuery) |
| Run a select query on the database. More...
|
|
virtual wxPreparedStatement * | PrepareStatement (const wxString &strQuery) |
| Prepare a SQL statement which can be reused with different parameters. More...
|
|
virtual bool | TableExists (const wxString &table) |
| Check for the existence of a table by name. More...
|
|
virtual bool | ViewExists (const wxString &view) |
| Check for the existence of a view by name. More...
|
|
virtual wxArrayString | GetTables () |
| Retrieve all table names. More...
|
|
virtual wxArrayString | GetViews () |
| Retrieve all view names. More...
|
|
virtual wxArrayString | GetColumns (const wxString &table) |
| Retrieve all column names for a table. More...
|
|
virtual wxArrayString | GetPKColumns (const wxString &table) |
| get Primary keys column names More...
|
|
void | InterpretErrorCodes (long nCode, void *stmth_ptr=NULL) |
|
void * | allocStmth () |
|
| wxDatabase () |
| Constructor. More...
|
|
virtual | ~wxDatabase () |
| Destructor. More...
|
|
virtual bool | ChangeDatabase (const wxString &database) |
|
virtual int | RunQuery (const wxString &strQuery) |
| Run an insert, update, or delete query on the database. More...
|
|
virtual bool | CloseResultSet (wxDatabaseResultSet *pResultSet) |
| Close a result set returned by the database or a prepared statement previously. More...
|
|
virtual bool | CloseStatement (wxPreparedStatement *pStatement) |
| Close a prepared statement previously prepared by the database. More...
|
|
int | ExecuteUpdate (const wxString &strQuery) |
| See RunQuery. More...
|
|
wxDatabaseResultSet * | ExecuteQuery (const wxString &strQuery) |
| See RunQueryWithResults. More...
|
|
virtual int | GetSingleResultInt (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| With the GetSingleResultX API, two additional exception types are thrown: wxDATABASE_NO_ROWS_FOUND - No database rows were returned wxDATABASE_NON_UNIQUE_RESULTSET - More than one database row was returned. More...
|
|
virtual int | GetSingleResultInt (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual wxString | GetSingleResultString (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| Retrieve a single string value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual wxString | GetSingleResultString (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual long | GetSingleResultLong (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| Retrieve a single long value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual long | GetSingleResultLong (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual bool | GetSingleResultBool (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| Retrieve a single bool value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual bool | GetSingleResultBool (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual wxDateTime | GetSingleResultDate (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| Retrieve a single date/time value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual wxDateTime | GetSingleResultDate (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual void * | GetSingleResultBlob (const wxString &strSQL, int nField, wxMemoryBuffer &Buffer, bool bRequireUniqueResult=true) |
| Retrieve a single Blob value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual void * | GetSingleResultBlob (const wxString &strSQL, const wxString &strField, wxMemoryBuffer &Buffer, bool bRequireUniqueResult=true) |
|
virtual double | GetSingleResultDouble (const wxString &strSQL, int nField, bool bRequireUniqueResult=true) |
| Retrieve a single double value from a query If multiple records are returned from the query, a wxDATABASE_NON_UNIQUE_RESULTSET exception is thrown unless bRequireUniqueResult is false. More...
|
|
virtual double | GetSingleResultDouble (const wxString &strSQL, const wxString &strField, bool bRequireUniqueResult=true) |
|
virtual wxArrayInt | GetResultsArrayInt (const wxString &strSQL, int nField) |
| Retrieve all the values of one field in a result set. More...
|
|
virtual wxArrayInt | GetResultsArrayInt (const wxString &strSQL, const wxString &Field) |
|
virtual wxArrayString | GetResultsArrayString (const wxString &strSQL, int nField) |
|
virtual wxArrayString | GetResultsArrayString (const wxString &strSQL, const wxString &Field) |
|
virtual wxArrayLong | GetResultsArrayLong (const wxString &strSQL, int nField) |
|
virtual wxArrayLong | GetResultsArrayLong (const wxString &strSQL, const wxString &Field) |
|
virtual wxArrayDouble | GetResultsArrayDouble (const wxString &strSQL, int nField) |
|
virtual wxArrayDouble | GetResultsArrayDouble (const wxString &strSQL, const wxString &Field) |
|
void | CloseResultSets () |
| Close all result set objects that have been generated but not yet closed. More...
|
|
void | CloseStatements () |
| Close all prepared statement objects that have been generated but not yet closed. More...
|
|
const wxString & | GetTypeName () |
| Get a descriptive name for the type of database. More...
|
|
bool | IsViaODBC () |
| Is the connection via ODBC. More...
|
|
const wxString & | GetLibraryPath () |
| Get the library path required by the database. More...
|
|
| wxDatabaseErrorReporter () |
|
virtual | ~wxDatabaseErrorReporter () |
|
const wxString & | GetErrorMessage () |
|
int | GetErrorCode () |
|
void | ResetErrorCodes () |
|
| wxDatabaseStringConverter () |
|
| wxDatabaseStringConverter (const wxChar *charset) |
|
virtual | ~wxDatabaseStringConverter () |
|
void | SetEncoding (wxFontEncoding encoding) |
|
void | SetEncoding (const wxCSConv *conv) |
|
const wxCSConv * | GetEncoding () |
|
virtual const wxCharBuffer | ConvertToUnicodeStream (const wxString &inputString) |
|
virtual size_t | GetEncodedStreamLength (const wxString &inputString) |
|
virtual wxString | ConvertFromUnicodeStream (const char *inputBuffer) |
|
virtual wxString | ConvertFromUnicodeStream (const wxChar *inputBuffer) |
|