Skip to content

badger.iterator needs Last() and Prev() #786

@Lawliet-Chan

Description

@Lawliet-Chan

We recently write a blockchain project by using badger. But we need some functions in badger.Iterator as follows:

func Last() : move the iterator to the last KV pair.

func Prev() : move the iterator to the previous KV pair.

I also saw these functions in go-leveldb and boltdb. But I just insist on Badger when I was at tech-meeting with my colleagues and leader.
Would you mind add these funtions into badger?

I like the badger more than other embedded DBs :-P
Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues related to current API limitations.kind/enhancementSomething could be better.priority/P2Somehow important but would not block a release.skip/staleSkip stalebotstatus/needs-attentionThis issue needs more eyes on it, more investigation might be required before accepting/rejecting it

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions