Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@libsql/client-wasm] use sqlite3Worker1Promiser instead of sqlite3InitModule #291

Open
kwaa opened this issue Jan 26, 2025 · 1 comment

Comments

@kwaa
Copy link

kwaa commented Jan 26, 2025

The current implementation runs in the main thread, making OPFS unavailable.

const sqlite3 = await sqlite3InitModule();

@callum-gander
Copy link

Is there any plan to implement this? I've been playing around with libsql to potentially use in a production project due to the appeal of being able to more easily backup and sync with a remote version of the local db but libsql seems to basically have no persistence within the browser which wildly limits it in the browser and for browser extensions in particular. Compared to other language sdks and other platforms, e.g. node and deno, there seems to be next to no real investment in browsers.

I've tried using:

Honestly, it'd just be really nice to have any real option for persistent. Having to load the db in memory just doesn't work well for a browser extension, particularly as the DB increases in size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants