leveldb-rs
leveldb-rs copied to clipboard
How can I use prefix query
How can I use prefix query?
Try this (and close the issue if it works, please):
- get an iterator (https://docs.rs/rusty-leveldb/latest/rusty_leveldb/struct.DB.html#method.new_iter)
-
seek()
to the prefix you are interested in (https://docs.rs/rusty-leveldb/latest/rusty_leveldb/trait.LdbIterator.html#tymethod.seek) - and keep iterating until the prefix changes.