![]() |
LibrePCB Developers Documentation
|
The SQLiteDatabase class. More...
#include <sqlitedatabase.h>
Inherits QObject.
Collaboration diagram for SQLiteDatabase:Classes | |
| class | TransactionScopeGuard |
Public Types | |
| typedef QVector< std::pair< QString, QString > > | Replacements |
Public Member Functions | |
| SQLiteDatabase ()=delete | |
| SQLiteDatabase (const SQLiteDatabase &other)=delete | |
| SQLiteDatabase (const FilePath &filepath, QObject *parent=nullptr) | |
| ~SQLiteDatabase () noexcept | |
| void | beginTransaction () |
| void | commitTransaction () |
| void | rollbackTransaction () |
| void | clearTable (const QString &table) |
| QSqlQuery | prepareQuery (QString query, const Replacements &replacements={}) const |
| int | count (QSqlQuery &query) |
| int | insert (QSqlQuery &query) |
| void | exec (QSqlQuery &query) |
| void | exec (const QString &query) |
| SQLiteDatabase & | operator= (const SQLiteDatabase &rhs)=delete |
Private Member Functions | |
| void | enableSqliteWriteAheadLogging () |
| Enable the "Write-Ahead Logging" (WAL) feature of SQLite. | |
| QHash< QString, QString > | getSqliteCompileOptions () |
| Get compile options of the SQLite driver library. | |
Private Attributes | |
| QSqlDatabase | mDb |
The SQLiteDatabase class.
| typedef QVector<std::pair<QString, QString> > Replacements |
|
delete |
|
delete |
| SQLiteDatabase | ( | const FilePath & | filepath, |
| QObject * | parent = nullptr |
||
| ) |
Here is the call graph for this function:
|
noexcept |
| void beginTransaction | ( | ) |
Here is the caller graph for this function:| void commitTransaction | ( | ) |
| void rollbackTransaction | ( | ) |
| void clearTable | ( | const QString & | table | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| QSqlQuery prepareQuery | ( | QString | query, |
| const Replacements & | replacements = {} |
||
| ) | const |
Here is the caller graph for this function:| int count | ( | QSqlQuery & | query | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| int insert | ( | QSqlQuery & | query | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void exec | ( | QSqlQuery & | query | ) |
Here is the caller graph for this function:| void exec | ( | const QString & | query | ) |
Here is the call graph for this function:
|
delete |
|
private |
Enable the "Write-Ahead Logging" (WAL) feature of SQLite.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Get compile options of the SQLite driver library.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |