Skip to content

split IDBCursor direction into isForward and isDuplicative #2694

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @seaneagan


In IDBCursor, I think this...

static final int NEXT = 0;
static final int NEXT_NO_DUPLICATE = 1;
static final int PREV = 2;
static final int PREV_NO_DUPLICATE = 3;

final int direction;

...should be replaced by:

final bool isForward;
final bool isDuplicative;

and then in IDBIndex and IDBObjectStore:

IDBRequest openCursor([IDBKeyRange range, bool isForward = true, isDuplicative = true]);
IDBRequest openKeyCursor([IDBKeyRange range, bool isForward = true, isDuplicative = true]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions