-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
WIP: Lexicographic iteration #104
base: master
Are you sure you want to change the base?
Conversation
This PR has been updated with support for a top-level Storing a db's path configuration (is there a better term for this?) in a header is still in the works. |
Some wires got crossed and I was referring to "lexicographic iteration" as |
This PR includes a couple of changes to make lexicographic iteration possible (relevant discussion here #78). Once supported, we should be able to create useful things like a leveldown implementation based on hyperdb.
Summary of changes:
lib/hash.js
has been modified to support variable-length paths. Each path component is separated by a separator value instead of being fixed-length.lib/iterator.js
andlib/put.js
have been lightly modified to a) remove hard-coded values and b) make non-recursive iteration respect the path separator.Some things to consider before this can be merged:
Note: This is still WIP, and the above issues need to be addressed before merging.