←back to thread

75 points markusw | 9 comments | | HN request time: 0.262s | source | bottom
1. emschwartz ◴[] No.45334021[source]
I think this is a neat direction to explore. I've wondered in the past whether you could use https://pglite.dev/ as if it were SQLite.
replies(4): >>45335242 #>>45335249 #>>45336800 #>>45342100 #
2. thruflo ◴[] No.45335242[source]
This is very much the point of https://pglite.dev

It's an embeddable Postgres you can run in process as a local client DB, just like SQLite but it's actually Postgres.

replies(2): >>45335479 #>>45335944 #
3. tensor ◴[] No.45335249[source]
Someone is working on a libpglite based around pglite. I think this is what will provide an actual sqlite alternative:

https://github.com/electric-sql/pglite-bindings

It would still be missing the standardized disk format aspect of sqlite, but otherwise will be neat.

4. OutOfHere ◴[] No.45335479[source]
I wish this were available for Go lang, perhaps via Wazero.
replies(1): >>45336227 #
5. emschwartz ◴[] No.45335944[source]
For sure. I’m curious if anyone using it in production as an alternative to SQLite and, if so, what the performance and experience is like.
6. ncruces ◴[] No.45336227{3}[source]
Me too. There's only so much time in life. I'd take it for a spin if someone else did it. :)
replies(1): >>45337319 #
7. markusw ◴[] No.45336800[source]
Interesting! I'm going to look into that. :-) Thank you for sharing.
8. markusw ◴[] No.45337319{4}[source]
Ah, I thought I recognized your username from a Github URL. :D Thank you for your contributions in the SQLite & Go space!
9. xarope ◴[] No.45342100[source]
You got my hopes up, but it's WASM for now, not something I could add into a golang [1] or python app and have running like sqlite. OK, still hoping...!

[1]https://github.com/electric-sql/pglite/issues/89