3 ms·
webassembly doesn't support file locking for sqlite databases that would allow for other processes to interact with the same database your application uses. It
by tracker1 6y ago
webassembly doesn't support file locking for sqlite databases that would allow for other processes to interact with the same database your application uses. It's actually one of my biggest gripes. You can use it in-memory and save the output or use a different database approach, and lose the features of sqlite.
Of course, a different kind of database, similar to say leveldb could work in single-process mode.
- Sephr 6y agoWebAssembly supports threads and shared memory, which should make it possible to implement software-based locks in the meantime. I definitely see the issue that you're bringing up, especially wrt external interoperability.
- tracker1 6y agoFor me, I often have a sqlite client connected to my active database while my application runs to run adhoc queries to check application's state/structure... with a wasm implementation, that is simply not possible.
- seg_lol 6y agoWe need a file system abstraction implemented in a webworker. Do you know if it or something similar exists?