meilisearch / heed

A fully typed LMDB wrapper with minimum overhead 🐦
https://docs.rs/heed
MIT License
519 stars 52 forks source link

Expose a safe low-level cursor API. #255

Open nolanderc opened 3 months ago

nolanderc commented 3 months ago

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:

A full cursor API would also let us efficiently implement an API similar to HashMap::entry (see this comment).