Myk Melez
58d46ec4d9
return Iter that produces error result from Cursor.iter*
6 years ago
Myk Melez
99f24f745d
fix test failure; clarify iterator collection type
6 years ago
Myk Melez
c3cb55c825
demonstrate various uses of API
6 years ago
Myk Melez
3fcf9306df
make Cursor::iter_*() methods return Result instead of panicking
6 years ago
Dan Burkert
c64f0b4f82
Simplify empty database iter handling
...
This commit changes the API of Cursor::iter_dup_of, and is thus a
breaking change.
6 years ago
Marshall Pierce
c616e3d51e
Don't panic on iter_start() on an empty db.
6 years ago
Myk Melez
342e50d387
ignore NotFound error when seeking to key in iter_from/iter_dup_from
6 years ago
Myk Melez
984d53b2cd
confirm that iter_from/iter_dup_from seek to first key >= specified key
6 years ago
Tony Arcieri
126aa4cd6c
Test iter_from/iter_dup_from with nonexistent keys
6 years ago
Tony Arcieri
869e16d1d2
Have iter_from/iter_dup_from return a Result
...
It previously called unwrap() which panics if a key isn't found
6 years ago
Joseph Ross
ef250445c1
Fix Android cross-compile build: `cargo build --target armv7-linux-androideabi`
6 years ago
Daniel Wagner-Hall
c240c9243b
Update pkg-config dependency to 0.3.2
...
Earlier versions of pkg-config don't build with any post-1.0 rust
compiler.
This is an attempt to get lmdb, and some non-trivial crates which depend
on it, building with `-Z minimal-versions`. See
https://github.com/rust-lang/cargo/issues/5657 for more information.
6 years ago
Dan Burkert
2f5a1c2615
Update .appveyor.yml
...
Linking lmdb with MinGW has begun failing due to [1], so this commit
disables it.
[1]: https://github.com/rust-lang/rust/issues/47048
6 years ago
Nan Jiang
12b4611006
Add a note for windows UNC path
6 years ago
Dan Burkert
90e8880995
0.8.0
7 years ago
Dan Burkert
5a70b18c0a
Remove deny(warnings)
7 years ago
Dan Burkert
e8e58fd04c
Add test for Environment::stats
7 years ago
Dan Burkert
09af4d92b7
Update docs and small tweaks
7 years ago
Dan Burkert
e5dbfc81bb
Update README.md
7 years ago
Dan Burkert
8e0bdab382
doc(hidden) -> pub(crate)
...
fixes #17
7 years ago
Dan Burkert
d0fda113ca
try! -> ?
7 years ago
Arthur Gautier
c15f22c884
Typo in documentation ( #22 )
7 years ago
zach
0f613773c1
Update dependencies and add database statistics ( #23 )
...
Add database statistics in a new `Stats` type
Also bundles a few other changes:
- Switch from `gcc` crate to `cc` for building lmdb
- Bump `bitflags` crate to 1.0
- Bump minimum required `rustc` from `1.8` to `1.20`
This is a breaking change.
7 years ago
Dan Burkert
6539d449f0
0.7.2
7 years ago
Dan Burkert
4d85f7390f
Convert to Cargo workspace project
7 years ago
Dan Burkert
547841a3e2
Compile lmdb with opt level O2
...
LMDB segfaults reliably with newer GCC versions when compiled with O3.
Regression test included.
fixes #21
7 years ago
Dan Burkert
ee5968dd25
reset lmdb-sys path-dep for next cycle
7 years ago
Dan Burkert
b2efebf54a
0.7.1
7 years ago
Sam Rijs
4b93278182
case mdb_strerror output to *const c_char ( #19 )
7 years ago
Dan Burkert
37b241c7b6
reset lmdb-sys path-dep for next cycle
7 years ago
Dan Burkert
64ae95ba16
0.7.0
7 years ago
Craig M. Brandenburg
15fe40a8e3
Implement Debug for public types ( #16 )
7 years ago
Dan Burkert
fc92971dca
Add crate doc root
...
https://github.com/brson/rust-api-guidelines#c-html-root
7 years ago
Dan Burkert
8d23b1acca
Bump bitflags to 0.9
7 years ago
Dan Burkert
f6343a283a
Update crate metadata and CI
7 years ago
Dan Burkert
76f000df07
Remove NulError
...
For whatever reason, the 1.8.0 toolchain isn't happy with NulError. It
wasn't necessary anyway.
7 years ago
Dan Burkert
2c43e693e6
Fix potential use-after-free
...
Clippy pointed out this potential use-after-free of a CString buffer. I
don't think in this case it caused an issue because the temporary
CString _should_ outlive the function call (at least, that's how C++
works...), however it's refactor-brittle, so best to fix.
https://github.com/Manishearth/rust-clippy/wiki#temporary_cstring_as_ptr
7 years ago
Dan Burkert
de8bdbd890
Bump LMDB to 0.9.21
7 years ago
Craig M. Brandenburg
14a5332e96
Disable rustfmt by default ( #14 )
...
This effects issue #11 .
7 years ago
Bruce Mitchener
2e36a93c61
Fix typo. ( #10 )
8 years ago
Dan Burkert
83b1d33fde
0.6.0
8 years ago
Dan Burkert
473173d14a
bump bitflags version
8 years ago
Dan Burkert
c43a2ee793
appveyor
8 years ago
Chip Collier
0d20eb4b59
tweaks to enable windows builds with msvc ( #9 )
8 years ago
Dan Burkert
9b5d48c89a
make IterDup public
8 years ago
Tony Arcieri
7517b13d92
Expose lmdb::Iter publicly ( #8 )
...
I'm trying to make a newtype wrapper around it, and can't because
it's in `lmdb::cursor`, which isn't public.
8 years ago
Dan Burkert
23e33ccd86
update doc links
9 years ago
Dan Burkert
d1bca3410f
new doc upload token
9 years ago
Dan Burkert
e99a3ba655
1.2.0 minimum rustc version
9 years ago
Dan Burkert
9261a89e2b
update to LMDB 0.9.18
9 years ago