standards-positions icon indicating copy to clipboard operation
standards-positions copied to clipboard

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

Open SteveBeckerMSFT opened this issue 4 months ago • 0 comments

WebKittens

@marcoscaceres

Title of the proposal

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

URL to the spec

https://github.com/w3c/IndexedDB/pull/461

URL to the spec's repository

https://github.com/w3c/IndexedDB

Issue Tracker URL

No response

Explainer URL

https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/IndexedDbGetAllEntries/explainer.md

TAG Design Review URL

https://github.com/w3ctag/design-reviews/issues/1117

Mozilla standards-positions issue URL

https://github.com/mozilla/standards-positions/issues/1261

WebKit Bugzilla URL

No response

Radar URL

No response

Description

Adds the getAllRecords() method to IDBObjectStore and IDBIndex, which combines getAll() and getAllKeys() to produce results that include the key, value, and index key through a single operation. Adds a direction option to getAllRecords(), getAll(), and getAllKeys(), which enables new query patterns like retrieving the last 10 records or performing batch iteration in reverse.

SteveBeckerMSFT avatar Jun 26 '25 17:06 SteveBeckerMSFT