meilisearch / heed

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

Add support for every database flags #200

Closed Kerollmops closed 1 year ago

Kerollmops commented 1 year ago

This Pull Request is based on #197.

It brings the support of the DUP_SORT, DUP_FIXED, REVERSE_KEY, INTEGER_KEY, INTEGER_DUP, and REVERSE_DUP flags.

I removed the Database::append method with the more generic Database::put_with_flags one. This new method can use the NO_DUP_DATA, NO_OVERWRITE, APPEND, and APPEND_DUP options. The same happened for all the Iterator::append methods replaced with Iterator::put_current_with_flags methods.

mikedilger commented 1 year ago

I'm hoping for some kind of delete_dup(key, value)

Kerollmops commented 1 year ago

Follow this toot instructions.

Kerollmops commented 1 year ago

As I am the only one available on the team and the CI seems happy, I will merge by hand without approval 🆘