MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / commitTransaction

Method commitTransaction

libs/librepcb/core/sqlitedatabase.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void SQLiteDatabase::commitTransaction() {
113 if (!mDb.commit()) {
114 qCritical() << "SQLiteDatabase error:" << mDb.lastError().text();
115 throw RuntimeError(
116 __FILE__, __LINE__,
117 "Could not commit database transaction: " % mDb.lastError().text());
118 }
119}
120
121void SQLiteDatabase::rollbackTransaction() {
122 if (!mDb.rollback()) {

Callers 2

TEST_FFunction · 0.80
commitMethod · 0.80

Calls 3

RuntimeErrorClass · 0.85
textMethod · 0.80
commitMethod · 0.45

Tested by 1

TEST_FFunction · 0.64