20#ifndef LIBREPCB_CORE_SQLITEDATABASE_H
21#define LIBREPCB_CORE_SQLITEDATABASE_H
78 int count(QSqlQuery& query);
79 int insert(QSqlQuery& query);
80 void exec(QSqlQuery& query);
81 void exec(
const QString& query);
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
Definition: sqlitedatabase.h:49
SQLiteDatabase & mDb
Definition: sqlitedatabase.h:59
bool mIsCommited
Definition: sqlitedatabase.h:60
~TransactionScopeGuard() noexcept
Definition: sqlitedatabase.cpp:49
void commit()
Definition: sqlitedatabase.cpp:44
TransactionScopeGuard()=delete
TransactionScopeGuard(const TransactionScopeGuard &other)=delete
The SQLiteDatabase class.
Definition: sqlitedatabase.h:43
SQLiteDatabase & operator=(const SQLiteDatabase &rhs)=delete
void commitTransaction()
Definition: sqlitedatabase.cpp:112
int count(QSqlQuery &query)
Definition: sqlitedatabase.cpp:155
void exec(QSqlQuery &query)
Definition: sqlitedatabase.cpp:183
int insert(QSqlQuery &query)
Definition: sqlitedatabase.cpp:170
void beginTransaction()
Definition: sqlitedatabase.cpp:103
QVector< std::pair< QString, QString > > Replacements
Definition: sqlitedatabase.h:48
void rollbackTransaction()
Definition: sqlitedatabase.cpp:121
void clearTable(const QString &table)
Definition: sqlitedatabase.cpp:130
QHash< QString, QString > getSqliteCompileOptions()
Get compile options of the SQLite driver library.
Definition: sqlitedatabase.cpp:214
QSqlDatabase mDb
Definition: sqlitedatabase.h:108
QSqlQuery prepareQuery(QString query, const Replacements &replacements={}) const
Definition: sqlitedatabase.cpp:138
void enableSqliteWriteAheadLogging()
Enable the "Write-Ahead Logging" (WAL) feature of SQLite.
Definition: sqlitedatabase.cpp:202
Definition: occmodel.cpp:77