2 ms·
Indexeddb is not built on top of SQLite. IndexedDb is an API. This API is more primitive and limited than SQL. This API is basically a key value store with indi
by crubier 5y ago
Indexeddb is not built on top of SQLite. IndexedDb is an API. This API is more primitive and limited than SQL. This API is basically a key value store with indices and transactions. This is what many SQL databases are implemented on top of (Postgres for example).
So yes it is absolutely possible to implement a SQL database on top of indexed DB, and that would be the architecturally logical thing to do.
The fact that Firefox goes the other way around is an implementation detail. What they did is called « emulation »: run a low level interface on top of a higher level one. This technique is very common and does not mean that the abstraction levels of API are suddenly magically reversed. It’s just an implementation detail of the architecture.
You can run NES code in an emulator in JavaScript on the web. Does this make NES assembly higher level than JavaScript ? No.