#include <DatabaseService.h>
| DatabaseService::DatabaseService |
( |
| ) |
|
| DatabaseService::~DatabaseService |
( |
| ) |
|
|
virtual |
| bool DatabaseService::BeginTransaction |
( |
| ) |
|
|
static |
| ApplicationDefines::ResultValue DatabaseService::CheckIfTableContainsColumn |
( |
const QString & |
tableName, |
|
|
const QString & |
columnName, |
|
|
bool & |
wantedColumnExists |
|
) |
| |
|
static |
| bool DatabaseService::CommitTransaction |
( |
| ) |
|
|
static |
| bool DatabaseService::ExecQuery |
( |
QSqlQuery & |
query | ) |
|
|
static |
| ApplicationDefines::ResultValue DatabaseService::PrepareAndExecQuery |
( |
QSqlQuery & |
query, |
|
|
const QString & |
queryContent, |
|
|
const bool |
doRollbackTransactionOnError |
|
) |
| |
|
static |
| bool DatabaseService::PrepareQuery |
( |
QSqlQuery & |
query, |
|
|
const QString & |
queryContent |
|
) |
| |
|
static |
| bool DatabaseService::RollbackTransaction |
( |
| ) |
|
|
static |
| bool DatabaseService::Vacuum |
( |
| ) |
|
|
static |
Vacuum - rebuilds the entire database file, reclaiming unused space and defragmenting data What Actually Happens:
- SQLite creates a new temporary database file.
- It copies all the valid data from the old file into the new one.
- The old file is then replaced with the new, optimized version.
- Returns
- true on success, false on failure
The documentation for this class was generated from the following files: