| 344 | } |
| 345 | |
| 346 | bool SQLiteDatabase::Rewrite() |
| 347 | { |
| 348 | // Rewrite the database using the VACUUM command: https://sqlite.org/lang_vacuum.html |
| 349 | int ret = sqlite3_exec(m_db, "VACUUM", nullptr, nullptr, nullptr); |
| 350 | return ret == SQLITE_OK; |
| 351 | } |
| 352 | |
| 353 | bool SQLiteDatabase::Backup(const std::string& dest) const |
| 354 | { |