| 339 | } |
| 340 | |
| 341 | [[noreturn]] void DBConnection::ThrowException( bool write ) const |
| 342 | { |
| 343 | // Sqlite3 documentation says returned character string |
| 344 | // does NOT require freeing by us. |
| 345 | wxString dbName{ sqlite3_db_filename(mDB, "main") }; |
| 346 | // Now we have an absolute path. Throw a message box exception that |
| 347 | // formats a helpful message just as used to be done before sqlite3 |
| 348 | // was used for projects. |
| 349 | throw FileException{ |
| 350 | write ? FileException::Cause::Write : FileException::Cause::Read, |
| 351 | dbName |
| 352 | }; |
| 353 | } |
| 354 | |
| 355 | int DBConnection::SafeMode(const char *schema /* = "main" */) |
| 356 | { |
no outgoing calls
no test coverage detected