Bug 16137 - IndexedDB: Add API for enumerating databases
IndexedDB: Add API for enumerating databases
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API
All All
: P2 normal
: ---
Assigned To: This bug has no owner yet - up for the taking
Depends on:
  Show dependency treegraph
Reported: 2012-02-27 18:39 UTC by Joshua Bell
Modified: 2012-07-09 16:04 UTC (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Bell 2012-02-27 18:39:11 UTC
This was proposed and discussed in this thread:


Plunking this in the bug database so we can track interest/objections/alternate proposals. Discussion stalled on the thread, but continued interest has been expressed offline.

Chrome has implemented this as webkitIndexedDB.getDatabaseNames() in response to user requests; the primary uses cases are for application debugging and diagnostics for deployed web apps. Tools like the Web Inspector which provide an interactive means of exploring local IDB instances address the former use case, but not the latter.
Comment 1 Odin Hørthe Omdal 2012-02-27 23:36:09 UTC
Agreed that this can be useful. I think it shouldn't use DOMStringList, as currently there's a want to remove those in favour of Arrays :-)

It'd be interesting to be able to get some guarantees, but this proposal is very easy to implement. Has anyone any good ideas how a guaranteed getDatabaseNames() would work?
Comment 2 Jonas Sicking 2012-03-02 04:01:30 UTC
Yup. Agreed that we should definitely do this, but for v2. I think it should be totally doable to specify and implement in such a manner that it fulfills the requirements in


Filing away with the other v2 bugs.
Comment 3 Joshua Bell 2012-07-09 16:04:55 UTC
Just for posterity, in case anyone goes looking:

Since there was no consensus to add this API, the Chrome API is currently prefixed as webkitGetDatabaseNames() - still hanging off the IDBFactory object.