Show HN: NoSQL, but it's SQLite

vsroy | 98 points

It's stored :memory:, there exists the same interface with:

    let x = {}
    x['foo'] = bar
This is a parody because the implementation is hidden, and I'm not convinced the implementation isn't just newing an object.
eterm | 6 months ago

Not a database, just a map of json strings where you can update the json stored at some key. You could write the same interface on top of localStorage.

jazzyjackson | 6 months ago

Couchbase mobile has been doing this for over a decade and early versions of membase 15 years ago were using a sqlite backend as a noSQL JSON datastore

b33f | 6 months ago

I've built this (unironically) for Python: https://github.com/senko/dante

It combines the convenience of SQLite (nothing to install) with the convenience of just throwing stuff in a dict. Perfect for quick prototypes/mockups.

senko | 6 months ago

The worst of both worlds, perfection.

iLoveOncall | 6 months ago

PowerSync does something similar I believe

redwood | 6 months ago

I did something similar with dotnet and linq. Idea was to create something like marten but for sqlite instead of postgres. Stopped working on it some time ago, the thing that was really slow was de/serialization, but with new source generators for json maybe it can be sped up.

stanac | 6 months ago

At work, we're using sql server, and i stored all json as base64 string though.

revskill | 6 months ago

Doesn’t sqlite-utils does this and more, better?

richrichie | 6 months ago

Beautiful. Please turn it into a repository. You wrangled that AI masterfully for this. Well done! :)

keepamovin | 6 months ago

> Built with o1.

Yes, yes, database with AI written code. NoSQL with a database that can't be trusted with your data? I. have. seen. this. before. To quote a classic:

> I suggest you pipe your data to devnull it will be very fast

In defense of the database that video was about, I worked as a software architect for the company which became the first commercial user of it, Eliot hilariously didn't want to accept money for support at first. Good old days. However, around 2015 when all three large open source SQL databases --- SQLite, PostgreSQL, MySQL -- added JSON support I felt there was no more need for these NoSQL systems, though.

_ugfj | 6 months ago

dang -- why was this flagged? Seems like a perfectly reasonable post.

vsroy | 6 months ago

[dead]

revendell_elf | 6 months ago

[dead]

yakorevivan | 6 months ago

[flagged]

cwillu | 6 months ago

[flagged]

isoprophlex | 6 months ago
[deleted]
| 6 months ago