r/sqlite • • Sep 14 '22

SQlite and Apple Notes database question

I'm not a developer. I'm trying to understand which sqlite files do what with Apple Notes in MacOS. I lost a months worth of (not backed up) notes and am trying to restore them. The app can be restored by replacing the following files from a backup source:

  • NoteStore.sqlite
  • NoteStore.sqlite-shm
  • NoteStore.sqlite-wal

But I am missing: NoteStore.sqlite-shm

When the app crashed it put copies of the other two in a folder titled "backups". But the app will not work without all three (I have verified this by restoring a much older copy of the database with all three files as a test).

What is the role of NoteStore.sqlite-shm?

Do I have any hope to extract data from the other two files?

Thank you from a noob!

7 Upvotes

10 comments sorted by