Hacker News new | ask | show | jobs
by phiresky 548 days ago
I tried using this a bit in an earlier version, when there was an option to have a real SQL client library/ORM, and you declared what part of the schema would exist client side. Is there plans to bring this back?

The part where you could use drizzle client side was really what interested me, I don't want to bother learning another new query language apart from SQL.

1 comments

Hey, it's possible to use PGlite on the client, along with Drizzle. Our "Linearlite" example show this (albeit without Drizzle) with a "write through the database" pattern to sync back to the server.

Live demo: http://linearlite.examples.electric-sql.com

Code: https://github.com/electric-sql/electric/tree/main/examples/...