Re: Starting work on Indexed DB v2 spec - feedback wanted

Hi,

Tim wrote:

> Personally, the main thing I want to see is expose simpler and lower
> level APIs. For my uses (backend to git server), the leveldb API is
> plenty powerful[…] Would it make sense to standardize on a simpler set
> of APIs similar to what levelDB offers and expose that in addition to
> what indexedDB currently exposes? Or would this make sense as a new
> API apart from IDB?

I think it would be a mistake to grow the existing IndexedDB API to be
more "LevelDB-y".

Keep in mind that some IndexedDB implementations are built on top of
LevelDB. We don't want to repeat the mistake of Web SQL Database, where
the Web-exposed API surface depended on the UA using a particular
version of SQLite as its backend.

Also, one of the goals of the IndexedDB API was to provide a substrate
on which database APIs could be built. Like Joshua wrote:

> You may want to try prototyping this on top of Indexed DB as a
> library, and see what others think.

Apparently this already exists:

> The level / node.js community already build a prototype on top of IDB
> ( https://github.com/maxogden/level.js )

We should certainly ensure that the IndexedDB API is rich enough to let
many such libraries be built on top of it. We should avoid changing it
in ways that favor a particular backend implementation strategy.


Ted

Received on Tuesday, 29 April 2014 18:22:54 UTC