Live data from Hacker News

Show HN: NoSQL, but it's SQLite

gist.github.com

31–40 of 48 posts

Re: Show HN: NoSQL, but it's SQLite

#31
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.

Re: Show HN: NoSQL, but it's SQLite

#33
post #27

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.

The implementation is very clearly included, if you... scrolled down.

And the point is, you could easy do `const db = new Database("./database.sqlite")` instead.

The wrapper makes it so manipulating your database is just like manipulating a plain Javascript object.

Re: Show HN: NoSQL, but it's SQLite

#35

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.

Yes that is exactly what it is! It's basically a very small upgrade over my favorite database: A JSON-file :)

Re: Show HN: NoSQL, but it's SQLite

#36
post #22
post #7

[flagged]

I'd be a little less reflexively hostile if the prompting used to generate it was prominently included, so that it was at least possible to see which properties of the output were deliberately asked for. When I read a piece of code I don't understand, ideally I'm able to assume that the author intended what was written, and learn something when I figure out why. With AI generated code, I can't do that: the original a…

The API is basically the prompt LOL. I chucked in the API, and had o1-pro write tests + fix bugs until it worked.

Re: Show HN: NoSQL, but it's SQLite

#38
post #37

Earlier quoted context omitted.

Seems to mean "negative-acknowledgement" if like me you've never seen this abbreviation used before. And yeah I agree.

o1-pro understands JS proxies better than me tbh, so probably a positive acknowledgment.

The fact that you don't seem to realize how this is even worse is scary.

Re: Show HN: NoSQL, but it's SQLite

#39
post #33
post #27

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.

The implementation is very clearly included, if you... scrolled down. And the point is, you could easy do `const db = new Database("./database.sqlite")` instead. The wrapper makes it so manipulating your database is just like manipulating a plain Javascript object.

It's since been edited. At the time of my original post it was importing from a file not present on this page.

Re: Show HN: NoSQL, but it's SQLite

#40
post #11

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

[flagged]
Post reply on HN