You can see the method for the journal file in the [Atomic Commit In SQLite](https://www.sqlite.org/atomiccommit.html) page. The short version is that the -journal file is a backup of the original file contents in case something goes wrong during the transaction, or you decide to rollback.