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

Wasi #569

Closed
lastmjs opened this issue Jan 27, 2024 · 3 comments
Closed

Wasi #569

lastmjs opened this issue Jan 27, 2024 · 3 comments

Comments

@lastmjs
Copy link

lastmjs commented Jan 27, 2024

Hi, I'm new to the library, but I would really like to be able to use it in our environment for a lot of applications. It seems that the memory model is very limited. Could we not compile SQLite to Wasi so that it could take advantage of the filesystem from the host environment? SQL.js could provide a default host implementation that is just an array of memory like it is currently doing...or perhaps wasi just becomes another way to load like we have wasm and asm currently.

Is this feasible? My team might be able to do the work if this sounds like a good idea. I would love some feedback.

Unfortunately I can't even get SQL.js with asm.js to run in our environment even though it was just working about a week ago, I could really use some help here: #568

@lovasoa
Copy link
Member

lovasoa commented Jan 28, 2024

Hi!
It's definitely possible to compile sqlite to wasi, but it's out of scope for sql.js. If you start your own project, I'd be happy to link to it in the readme here

@lovasoa lovasoa closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2024
@lastmjs
Copy link
Author

lastmjs commented Jan 29, 2024

Hi, I mean compiling sqlite to Wasi and having that binary as one of the officially supported in SQL.js. Is that out of scope? So you could import sql-wasm.js or sql-wasi.js.

Wouldn't this make SQL.js much more useful by allowing devs to hook into a filesystem for persistence?

@lovasoa
Copy link
Member

lovasoa commented Jan 29, 2024

I think the use of js + wasi is anecdotal. When you are targeting wasi, most of the time you can use sqlite directly.

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