←back to thread

Sqlite3 WebAssembly

(sqlite.org)
506 points whatever3 | 1 comments | | HN request time: 0s | source
Show context
me551ah ◴[] No.41851739[source]
After years of being able to run SQLite on my mobile phone, my tv, my router and gaming consoles, I can finally run it on my browser. Which also happens to be running on the most powerful machine I own
replies(1): >>41852109 #
ibash ◴[] No.41852109[source]
surprise! it's been there for decades: https://en.wikipedia.org/wiki/Web_SQL_Database
replies(1): >>41852276 #
adregan ◴[] No.41852276[source]
It was there for a decade: https://caniuse.com/sql-storage
replies(1): >>41852508 #
joemi ◴[] No.41852508{3}[source]
I wonder why it was unmaintained/dropped. Was there something wrong with it, and if so, would that also apply to this kind of wasm implementation?
replies(1): >>41852746 #
debugnik ◴[] No.41852746{4}[source]
Mozilla refused to support it because then every implementation would have simply used SQLite, which would have promoted any implementation details to a de facto standard. (Even caniuse erroneously describes the feature as "allows SQLite database queries".)

From the latest spec [1]:

> The specification reached an impasse: all interested implementors have used the same SQL backend (Sqlite), but we need multiple independent implementations to proceed along a standardisation path.

[1]: https://www.w3.org/TR/webdatabase/

This won't be a problem for wasm SQLite because it isn't a standard being shipped by browsers, just another dependency.

replies(2): >>41853046 #>>41853591 #
1. xyc ◴[] No.41853046{5}[source]
i have a feeling that it set back the web by a decade

https://x.com/chxy/status/1822858746307170640