Interface for a user defined hook function.
More...
#include <wxsqlite3.h>
Interface for a user defined hook function.
◆ wxUpdateType
Codes identifying the command for which the hook is called.
Enumerator |
---|
SQLITE_DELETE | |
SQLITE_INSERT | |
SQLITE_UPDATE | |
◆ wxSQLite3Hook()
wxSQLite3Hook::wxSQLite3Hook |
( |
| ) |
|
|
inline |
◆ ~wxSQLite3Hook()
virtual wxSQLite3Hook::~wxSQLite3Hook |
( |
| ) |
|
|
inlinevirtual |
◆ CommitCallback()
virtual bool wxSQLite3Hook::CommitCallback |
( |
| ) |
|
|
inlinevirtual |
Execute the commit hook callback function.
Please refer to the SQLite documentation for further information.
- Returns
- true to request rollback of the transaction, false to continue with commit
◆ GetDatabase()
Get the associated database.
For the write-ahead log hook the associated database can be accessed.
- Returns
- pointer to the associated database instance
- Note
- Access to the associated database is only provided for write-ahead log hooks.
◆ RollbackCallback()
virtual void wxSQLite3Hook::RollbackCallback |
( |
| ) |
|
|
inlinevirtual |
Execute the rollback hook callback function.
Please refer to the SQLite documentation for further information.
◆ SetDatabase()
Set the associated database.
For the write-ahead log hook the associated database is set internally.
- Parameters
-
db | pointer to the associated database instance |
◆ UpdateCallback()
virtual void wxSQLite3Hook::UpdateCallback |
( |
wxUpdateType | WXUNUSEDtype, |
|
|
const wxString & | WXUNUSEDdatabase, |
|
|
const wxString & | WXUNUSEDtable, |
|
|
wxLongLong | WXUNUSEDrowid ) |
|
inlinevirtual |
Execute the hook callback function.
Please refer to the SQLite documentation for further information about the meaning of the parameters.
- Parameters
-
type | wxHookType. The value signifies what kind of operation is to be authorized. |
database | Name of the database |
table | Name of the table |
rowid | The rowid of the affected row |
◆ WriteAheadLogCallback()
virtual int wxSQLite3Hook::WriteAheadLogCallback |
( |
const wxString & | WXUNUSEDdatabase, |
|
|
int | WXUNUSEDnumPages ) |
|
inlinevirtual |
Execute the write-ahead log hook callback function.
Please refer to the SQLite documentation for further information about the meaning of the parameters.
- Parameters
-
database | Name of the database |
numPages | the number of pages |
The documentation for this class was generated from the following file: