#1117: Add IndexedDB getAllRecords() method and update getAll()/getAllKeys() to support direction option

Visit on Github.

Opened Jun 26, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of the getAllRecords() method and the direction option for IndexedDB.

Proposes a new operation, getAllRecords(), which combines getAllKeys() with getAll() to enumerate both primary keys and values at the same time. For an IDBIndex, getAllRecords() also provides the record's index key in addition to the primary key and value. Lastly, getAllRecords() offers a new direction option to enumerate records sorted by key in descending order. To add the direction option to the existing getAll() and getAllKeys() operations, this explainer proposes new function overloads that accept the same argument as getAllRecords(): the IDBGetAllOptions dictionary.

Further details:

<!-- Content below this is maintained by @w3c-tag-bot -->

Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1117

Discussions