meilisearch / heed

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

provide fn to delete a database: mdb_drop(1) #214

Open mikedilger opened 1 year ago

mikedilger commented 1 year ago

You can clear a database but not remove it. This isn't high priority, but I like things tidy.

Kerollmops commented 5 months ago

Hey @mikedilger 👋

I am moving this one to a future milestone to release the v0.20 soon. For your information, the official LMDB documentation states that it is not useful to close DBIs.

Close a database handle. Normally unnecessary. [..] Closing a database handle is not necessary, but lets #mdb_dbi_open() reuse the handle value. Usually it's better to set a bigger #mdb_env_set_maxdbs(), unless that value would be large.