-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BonsaiStorage): added new methods for retrieving key-value pairs…
… and change id for `BonsaiStorage` (#25) * test(insert): added tests for insertions into `BonsaiStorage` without skiping first 5 bites * test(keys): updated key retrieval test * feat(key-value): added function `get_key_value_pairs` Also updated `get_keys` to filter out non-leaf nodes + remove the length byte at index 0 when returning keys. > Please note that this currently poses problems with the implementation of `HashMapDb`, due to it not differenciating leaf nodes from branch nodes. This will have to be fixed at a later date. * feat(id): added `get_latest_id` * fix(clippy): code now uses `filter_map` and fixed clippy errors --------- Co-authored-by: Timothée Delabrouille <[email protected]>
- Loading branch information
1 parent
2af0cb6
commit 6efb672
Showing
4 changed files
with
511 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.