The SQLiteDatabase class.
More...
#include <sqlitedatabase.h>
Inherits QObject.
|
typedef QVector< std::pair< QString, QString > > | Replacements |
|
◆ Replacements
◆ SQLiteDatabase() [1/3]
◆ SQLiteDatabase() [2/3]
◆ SQLiteDatabase() [3/3]
◆ ~SQLiteDatabase()
◆ beginTransaction()
void beginTransaction |
( |
| ) |
|
◆ commitTransaction()
void commitTransaction |
( |
| ) |
|
◆ rollbackTransaction()
void rollbackTransaction |
( |
| ) |
|
◆ clearTable()
void clearTable |
( |
const QString & |
table | ) |
|
◆ prepareQuery()
QSqlQuery prepareQuery |
( |
QString |
query, |
|
|
const Replacements & |
replacements = {} |
|
) |
| const |
◆ count()
int count |
( |
QSqlQuery & |
query | ) |
|
◆ insert()
int insert |
( |
QSqlQuery & |
query | ) |
|
◆ exec() [1/2]
void exec |
( |
QSqlQuery & |
query | ) |
|
◆ exec() [2/2]
void exec |
( |
const QString & |
query | ) |
|
◆ operator=()
◆ enableSqliteWriteAheadLogging()
void enableSqliteWriteAheadLogging |
( |
| ) |
|
|
private |
Enable the "Write-Ahead Logging" (WAL) feature of SQLite.
- Note
- LibrePCB requires to enable WAL to avoid blocking readers by writers. If not enabled, the library scanner would also block all read-only accesses to the library database.
- See also
- http://www.sqlite.org/wal.html
◆ getSqliteCompileOptions()
QHash< QString, QString > getSqliteCompileOptions |
( |
| ) |
|
|
private |
◆ mDb
The documentation for this class was generated from the following files: