kexi
SQLiteVacuum Class Reference
#include <sqlitevacuum.h>
Detailed Description
Helper class performing interactive compacting (VACUUM) of the SQLite database.Proved SQLite database filename in the constructor. Then execute run() should be executed.
KProgressDialog will be displayed. Its progress bar will be updated whenever another table's data compacting is performed. User can click "Cancel" button in any time (except the final committing) to cancel the operation. In this case, it's guaranteed that the original file remains unchanged.
This is possible because we rely on SQLite's VACUUM SQL command, which itself temporarily creates a copy of the original database file, and replaces the orginal with the new only on success.
Definition at line 45 of file sqlitevacuum.h.
Public Slots | |
void | readFromStdout () |
void | processExited () |
void | cancelClicked () |
Public Member Functions | |
SQLiteVacuum (const QString &filePath) | |
~SQLiteVacuum () | |
tristate | run () |
Protected Attributes | |
QString | m_filePath |
QProcess * | m_process |
KProgressDialog * | m_dlg |
int | m_percent |
tristate | m_result |
Member Function Documentation
tristate SQLiteVacuum::run | ( | ) |
Performs compacting procedure.
- Returns:
- true on success, false on failure and cancelled if user clicked "Cancel" button in the progress dialog.
Definition at line 56 of file sqlitevacuum.cpp.
The documentation for this class was generated from the following files: