Victor Porof
2acd21c529
Rustfmt pass (cargo +nightly fmt --all)
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Myk Melez
5849f37f31
separate benches from tests
6 years ago
Rick Richardson
8599e4051e
added test for deleting values from an iter_dup db
6 years ago
Myk Melez
af923dc62d
explicitly identify reference in match patterns
6 years ago
Myk Melez
a558fab590
convert Iter/IterDup to enums
...
Instead of boxing Iter/IterDup to generalize across both successful and failed attempts to get an iterator, we make Iter and IterDup be enums with Ok and Err variants, where the Ok variant behaves like the current implementations, and the Err variant always returns an error.
6 years ago
Myk Melez
09bd1de39b
remove unnecessary commented-out code
6 years ago
Myk Melez
6f06c1c1e9
remove test that is no longer relevant
6 years ago
Myk Melez
6414b83a10
alias Box<Iter> type to BoxedIter; make iter_dup_from return iterator too
6 years ago
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
Myk Melez
fe6bcde6c2
ignore NotFound error when seeking to key in iter_from/iter_dup_from
7 years ago
Myk Melez
d6dad15f3e
confirm that iter_from/iter_dup_from seek to first key >= specified key
7 years ago
Dan Burkert
09af4d92b7
Update docs and small tweaks
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
Craig M. Brandenburg
15fe40a8e3
Implement Debug for public types ( #16 )
8 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
8 years ago
Tony Arcieri
53fd6afdb6
Test iter_from/iter_dup_from with nonexistent keys
8 years ago
Tony Arcieri
a5200104dc
Have iter_from/iter_dup_from return a Result
...
It previously called unwrap() which panics if a key isn't found
8 years ago
Dan Burkert
f749811730
Generic key/data arguments
9 years ago
Dan Burkert
c101fa5c1f
Update for stable Rust
9 years ago
Dan Burkert
52d663fcf9
cleanup slice creation
10 years ago
Dan Burkert
8e52bdbb79
update for rustc 1.0.0-nightly (e2fa53e59 2015-03-20) (built 2015-03-20)
10 years ago
Dan Burkert
e33598b9b0
Completely remove old_io
10 years ago
Dan Burkert
735bd511c9
use stdlib TempDir
10 years ago
Dan Burkert
79f36662df
Drop Lmdb prefix on Error and Result
10 years ago
Dan Burkert
dee8811fd0
update for rustc 1.0.0-nightly (522d09dfe 2015-02-19) (built 2015-02-20)
10 years ago
Dan Burkert
37db788f1c
update for rustc 1.0.0-nightly (1d00c545e 2015-01-30 19:56:34 +0000)
10 years ago
Dan Burkert
15ac361762
Update for rustc 1.0.0-nightly (ed530d7a3 2015-01-16 22:41:16 +0000)
10 years ago
Dan Burkert
61035b625e
Allow unstable; rename uint
10 years ago
Dan Burkert
0b202ecd56
Update for rustc 1.0.0-nightly (44a287e6e 2015-01-08 17:03:40 -0800)
10 years ago
Dan Burkert
1b2dbfc6e7
add duplicate item iterator
10 years ago
Dan Burkert
a2abd18460
add duplicate iterators
10 years ago
Dan Burkert
8897ad4eab
Begin adding more iterators
10 years ago
Dan Burkert
9facaae124
rename transaction and cursor opening functions; improve docs
10 years ago
Dan Burkert
25f240282e
flatten Transaction::get return type
10 years ago
Dan Burkert
ae49ecef6b
reintroduce LmdbError as enum
10 years ago
Dan Burkert
c745961037
Flag constants for lmdb-sys; move bitflags! to lmdb proper
10 years ago
Dan Burkert
b1c1bb5b0b
simplify cursor struct hierarchy
10 years ago
Dan Burkert
c38f094aff
add rand put and get benchmarks
10 years ago