-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get range #99
Conversation
sweet, lgtm! |
nice! |
which begs the question: does it belong in LevelDOWN at all then? discuss |
it belongs in leveldown when this eventually gets part of abstract leveldown. if anything, the buffering iterator should make it |
Buffering iterator makes perfect sense, the range get though isn't so clear-cut since it's something that can be done with an addon. I certainly don't think it's a clear candidate for abstractleveldown either as it's far more than a primitive. It's just something that a data store can expose if it makes sense. |
I think of the If we implemented the buffering iterator without regards to compatibility with the existing leveldown-compatible backends, we could have a public |
FWIW, this is possibly one of the most requested features from people I talk to. |
I've updated https://github.com/kesla/level-get-range to work with #91 - so from that point of view this PR isn't really needed. I'm calling the |
... and here's streams that outputs arrays (the buffered arrays) of data https://github.com/kesla/level-buffered-streams - so I guess that it's feasible to fullfill some of the use cases in userland. |
So, this is pretty cool.
I've implemented the getRange-method (#98) without chaning any C++!
I'm building this upon the PR using abstract-leveldown (#50), since the arguments checking then is done in javascript-land and therefore I can implement this in pure js-land!