standards-positions
                                
                                
                                
                                    standards-positions copied to clipboard
                            
                            
                            
                        Add IndexedDB getAllRecords() method and update getAll()/getAllKeys() to support direction option
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.