3 ms·
> Why hasn’t this been tried? https://caniuse.com/sql-storage https://caniuse.com/sql-storage Supported in Chrome 4, circa January 2010. I'm forgetting the n
by rektide 6y ago
> Why hasn’t this been tried?
https://caniuse.com/sql-storage https://caniuse.com/sql-storage
Supported in Chrome 4, circa January 2010.
I'm forgetting the name of it but there is a spec, I think in wicg, for low-level/byte-level file access. This should make using emscripten to compile things like sqlite far more straightforward, to build whatever you want.
I like the shout out to streaming changes out of the database, which the author mentions in terms of redux & time travel abilities from having a wal. Server side systems like Debezium for doing this have been gamechanging. At the moment, the high-level file api has no support for watching for changes (https://github.com/WICG/file-system-access/issues/72 https://github.com/WICG/file-system-access/issues/72). Maybe post 1.0 we might see progress. I don't believe the low-level api has anything for watching for changes.
From a more meta-assesment level of this article: I do hope we can stick with HTTP centric entities, personally. GraphQL with it's generic endpoint that all operations get sent to is, in my view, quite a bad development. But not irreconcileably so: bridges could be built. I'm definitely in favor of experimentation, trying things out. But I also think there's good reasons to keep entities and their urls around, to not abandon that. GraphQL right now doesn't seem to think about that or care about that, but I also think it could be reformed.
- deleted 6y ago[deleted]
- vaughan 6y agoDoesn't appear it was deprecated for the usage that I propose. https://softwareengineering.stackexchange.com/questions/220254/why-is-web-sql-database-deprecated https://softwareengineering.stackexchange.com/questions/2202... >Byte-level storage Would be cool. --- https://hacks.mozilla.org/2010/06/beyond-html5-database-apis-and-the-road-to-indexeddb/ https://hacks.mozilla.org/2010/06/beyond-html5-database-apis... > From article: we think developer aesthetics are an important consideration...we were resolved that using strings representing SQL commands lacked the elegance of a “web native” JavaScript API, and started looking at alternatives. Seems a bit short-sighted considering SQL is super popular today on the backend.
- rektide 6y agoi think it's changed names (maybe) since i've last seen it? but here is the low level io spec: https://github.com/WICG/storage-foundation-api-explainer https://github.com/WICG/storage-foundation-api-explainer