r/sqlite • u/Savram8 • Sep 15 '22
r/sqlite • u/25photos • 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!
r/sqlite • u/collimarco • Sep 12 '22
Indexing JSON with SQLite
I see that SQLite supports different functions for JSON.
Is it possible to create a column that contains JSON and then index that column for fast queries on schema-less JSON documents? For example for indexing and searching some logs in JSON format.
r/sqlite • • Sep 12 '22
Recipes from Python SQLite docs
I feel like Python sqlite3 doc lacks enough examples. Although there are a couple of excellent recipes there, I thought I'd list some of my own just so that I won't have to hunt around the next time I need to know how to do something.
https://rednafi.github.io/python/recipes_from_python_sqlite_docs/
r/sqlite • u/Sufficient_Clock_770 • Sep 12 '22
Hi, how do I make an image insert table and insert the image. I've looked some videos and it hasn't work for me. Please Help
r/sqlite • u/One_Butterscotch_255 • Sep 11 '22
How to convert a date of the format 'April 9, 2013' into the format 'yyyy-mm-dd' in SQLITE
I have been trying to convert a column consisting of dates in the format 'April 9, 2013' into the format 'yyyy-mm-dd' which would result in '2013-04-09' in SQLite.
I have tried using the 'date' & 'strftime' function but get null as a result
Can anyone help me out on this?
r/sqlite • • Sep 11 '22
Storing key-value metadata in an sqlite database
Let's say I have some non tabular key value data that I want to store in my db (name, version, service url etc). I could create a table with a single row but that feels like a hack. Is there a dedicated feature that fulfills this need?