Re: [spec-reviews] Indexed DB getAll(), openKeyCursor() and objectStoreNames (#84)

Questions!

`IDBObjectStore.getAll()`, `IDBObjectStore.getAllKeys()`, `IDBIndex.getAll()`, and `IDBIndex.getAllKeys()` look great. Glad they're being added!

The fact that these methods return an `Array` is interesting from the perspective of ES6 Iterators, Generators, and the protocol they expose. It seems like cursors are, in some way, a userland version of these (in much the same way that `IDBRequest` is sort of a user-land `Promise`). Has any thought been given to some form of unification and/or methods that return [ES6 iterators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) (perhaps instead of the current `Cursor`)?

`IDBObjectStore.openKeyCursor()` looks good.

`IDBTransaction.objectStoreNames` similarly seems useful.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/spec-reviews/issues/84#issuecomment-171539432

Received on Thursday, 14 January 2016 05:59:21 UTC