4 ms·
IMO compiling sqlite to webassembly is a better approach than declaring a specific implementation a standard and integrating it in browsers.
by CodesInChaos 6y ago
IMO compiling sqlite to webassembly is a better approach than declaring a specific implementation a standard and integrating it in browsers.
- majewsky 6y agoHaving it on the browser level would have the huge advantage of the DB contents being visible to the users in devtools (not just to the developers via their custom tooling).
- osmarks 6y agoI don't think browsers have a good API it could store to, though. As far as I know there isn't really anything for storing efficiently in-place updateable/readable large binary blobs.
- CodesInChaos 6y agoWhat about IndexedDB? A basic implementation would use one document per page. An advanced integration might replace the whole sqlite storage engine with one based on IndexedDB.
- osmarks 6y agoThat could work, I forgot SQLite worked by pages. It's still probably not ideal, though.