You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LMDB cursor API is quite powerful; something similar should be exposed by heed. The RwIter API gets close, but is unsafe and does not handle seeking to arbitrary keys. The API should allow the following operations:
Seeking to an arbitrary key.
Seeking to the next/previous key-value pair.
Reading the current key/value (could be part of the seeking operations).
Inserting an arbitrary key-value pair (LMDB optimizes for cases where the key would end up close to where the cursor is currently pointing).
A full cursor API would also let us efficiently implement an API similar to HashMap::entry (see this comment).
The text was updated successfully, but these errors were encountered:
It's an open-source repository. Feel free to propose solutions though play.rust-lang.org (before implementation) and probably directly expose the internal Cursor type and make it more safe or wrap it if necessary.
The LMDB cursor API is quite powerful; something similar should be exposed by
heed
. TheRwIter
API gets close, but isunsafe
and does not handle seeking to arbitrary keys. The API should allow the following operations:A full cursor API would also let us efficiently implement an API similar to
HashMap::entry
(see this comment).The text was updated successfully, but these errors were encountered: