4 ms·
Not really as the WASM version of Sqlite is memory only and cannot write to disk. Please feel free to correct me if this has changed though
by zubairq 6y ago
Not really as the WASM version of Sqlite is memory only and cannot write to disk. Please feel free to correct me if this has changed though
- tracker1 6y agoNope... the wasm fs adapters don't allow the flexibility needed to really operate correctly. It might be best to try alternatives like wrappers around leveldb as a baseline, which of course isn't sql and has its' own drawbacks.
- kevin_thibedeau 6y agoSQLite still has a workaround for locking on Win95. That could be adapted for wasm. https://github.com/sqlite/sqlite/blob/610f11de25993960ff616edde0f5dc47d1c0b56e/src/os.h#L94 https://github.com/sqlite/sqlite/blob/610f11de25993960ff616e...
- tracker1 6y agoIn another comment I mention, that I often use a desktop sqlite client to actively connect to the operation sqlite database an application may be running against. Wasm will not support this, even with the workaround above.
- greggman3 6y agoI don't know all the issues but AFAICT wasm is just executing code. The libraries you provide for it are up to you. So if you so, for example, thinking of node, if I expose `fs.openSync` `fs.readSync`, `fs.writeSync` and `fs.closeSync` what's missing that wasm can't write to disk?
- miohtama 6y agoWASI fixes this https://wasi.dev/ https://wasi.dev/