vhbit / lmdb-rs

Rust bindings for LMDB
MIT License
114 stars 47 forks source link

keyrange with excluding end #13

Closed xitep closed 9 years ago

xitep commented 9 years ago

Hello,

is there a nice way to iterate over keys starting with a given "from" key (including that) while ending the iteration at a given "end" key (this is, excluding that key from the iteration)? While keyrange_from/_to individually provide what I need, it seems that keyrange includes the "end" key on purpose. However, I fail to find a strong reason for this.

P.

xitep commented 9 years ago

Made a proposal with pull request [https://github.com/vhbit/lmdb-rs/pull/14] which I can imagine to co-exist with the current library without breaking backwards compatibility.

vhbit commented 9 years ago

Fixed by merging #14

xitep commented 9 years ago

Thank you!

xitep commented 9 years ago

Would it be possible to release this as a 4.0.1 on crates.io?

vhbit commented 9 years ago

@xitep sorry for delays - it's a bit busy time here. I want to do some more minor changes before pushing a new version, I'll try to find a time slice today to finish them.

xitep commented 9 years ago

many thanks! but there's no need to rush. it would be merely a convenience for me at this point in time. really, no need to rush.

vhbit commented 9 years ago

@xitep it seems with a new born it'll be much harder than I expected to land changes I've planned so I've just released 0.4.1 as it is, sorry again for a long wait.

xitep commented 9 years ago

:) Thank you!