Skip to content

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

Open
@SteveBeckerMSFT

Description

@SteveBeckerMSFT

こんにちは 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:


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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions