Skip to content

openCursor direction doesn't work ? #236

@razorree

Description

@razorree

there is no difference (records are returned in ascending order) between

            objectStore(STORE_NAME).openCursor(autoContinue = true, direction = Cursor.Direction.Previous).collect { cursor ->

and

            objectStore(STORE_NAME).openCursor(autoContinue = true, direction = Cursor.Direction.Next).collect { cursor ->

How to get results from the end? (like last record for example)

the same happens with openKeyCursor (direction doesn't work, so I have to loop thru all elements to find max(id) and use it as an id for next insert, because autoincrement doesn't work either (other issue) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions