Skip to content

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

Description

@SteveBeckerMSFT

WebKittens

@marcoscaceres

Title of the proposal

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

URL to the spec

w3c/IndexedDB#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

w3ctag/design-reviews#1117

Mozilla standards-positions issue URL

mozilla/standards-positions#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions