| 25 | constexpr int version_number = 5; // increase this whenever the DB schema changes! |
| 26 | |
| 27 | void raiseDBError_(const String& error, int line, const char* function, |
| 28 | const String& context, const String& query) |
| 29 | { |
| 30 | String msg = context + ": " + error; |
| 31 | if (!query.empty()) |
| 32 | { |
| 33 | msg += String("\nQuery was: ") + query; |
| 34 | } |
| 35 | throw Exception::FailedAPICall(__FILE__, line, function, msg); |
| 36 | } |
| 37 | |
| 38 | bool execAndReset(SQLite::Statement& query, int expected_modifications) |
| 39 | { |
no test coverage detected