DallasHoff / sqlocal

SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system.
https://sqlocal.dallashoffman.com
MIT License
322 stars 15 forks source link

Sqlocal with pglite #20

Closed MirjamElad closed 6 months ago

MirjamElad commented 7 months ago

Hello, Would you consider making sqlocal work with PgLite? https://github.com/electric-sql/pglite It's just like sqlite-wasm but it is rather an implementation of PosgreSQL made by the people in Electric-SQL and Neon

DallasHoff commented 6 months ago

The main goals of SQLocal are to simplify the usage of SQLite WASM by abstracting away all of the boilerplate code you need to run it in a web worker and to provide a straightforward API and integrations with type-safe query builders. I've been watching the PGLite project, and it looks they already have an API with similar abstractions, and they plan to add integrations with query builders like Drizzle soon. Given this, there's not really anything we can offer by building an SQLocal integration for PGLite.