If you did not enable Write-Ahead, Iām afraid your changes are likely to be lost. SQLite's standard logging system works in the opposite direction than you would expect.
From the documentation:
The traditional rollback log works by writing a copy of the original unchanged database contents to a separate rollback log file, and then writing the changes directly to the database file. In the event of a failure or ROLLBACK, the original content contained in the rollback log is played back in the database file to return the database file to its original state.
Cm:
WAL: https://sqlite.org/wal.html
File formats, including logs: https://sqlite.org/fileformat.html
source share