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

Replace sqlite3 recipe with native WASM version? #1254

Open
michaelweinold opened this issue Aug 1, 2024 · 0 comments
Open

Replace sqlite3 recipe with native WASM version? #1254

michaelweinold opened this issue Aug 1, 2024 · 0 comments

Comments

@michaelweinold
Copy link
Contributor

Unfortunately, a simple sqlite3 test of this kind:

import sqlite3
con = sqlite3.connect("tutorial.db")
cur = con.cursor()
cur.execute("CREATE TABLE movie(title, year, score)")
res = cur.execute("SELECT name FROM sqlite_master")

still does not work with the default drive of either the IndexDB or the LocalStorage drivers, as documented here:

However, SQlite from v3.40.0 now includes:

(...) support for compiling SQLite to WASM and running it in web browsers.

it is available for download as

A precompiled bundle of sqlite3.wasm and its JavaScript APIs, ready for use in web applications.

The version included in the emscripten-forge recipes is still v.3.37.2.

Maybe this will solve some of the SQLite/WASM file-system issues.

Would it make sense to use this WASM-native version from now on? How could this be included - persumably, this would not need to be built from source?

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

1 participant