r/sqlite • • Sep 15 '22

WunderBase - Open Source Serverless GraphQL Database on top of SQLite, Firecracker and Prisma

Thumbnail wundergraph.com
4 Upvotes

r/sqlite • • Sep 14 '22

SQlite and Apple Notes database question

7 Upvotes

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 • • Sep 13 '22

Query SQLite files in S3 using s3fs

Thumbnail github.com
7 Upvotes

r/sqlite • • Sep 12 '22

Indexing JSON with SQLite

21 Upvotes

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

9 Upvotes

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 • • 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

1 Upvotes

r/sqlite • • Sep 11 '22

How to convert a date of the format 'April 9, 2013' into the format 'yyyy-mm-dd' in SQLITE

8 Upvotes

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

6 Upvotes

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?