| 110 | } |
| 111 | |
| 112 | void 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 | |
| 121 | void SQLiteDatabase::rollbackTransaction() { |
| 122 | if (!mDb.rollback()) { |