Nicolas Gotchac
2096f04092
Add lifetimes for `DBIterator` return types ( #294 )
5 years ago
Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
896dbc6c61
Applying changes from rustfmt...
6 years ago
Jordan Terrell
e1a534ca5e
Removing unnecessary pub modifier on test functions...
6 years ago
Jordan Terrell
f09fbaea71
Minor tweak to test comment...
6 years ago
Jordan Terrell
4c0d662435
Adding test to validate correct behavior of prefix_iterator...
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Jordan Terrell
0a1eff1833
Renaming DBName to DBPath and implementing AsRef<Path> on DBPath...
6 years ago
Tyler Neely
3f3851e720
Update test_iterator.rs
...
more completely resolve conflict
6 years ago
Martin Ek
17588a7658
Make sure DB is dropped after all tests
7 years ago
Martin Ek
dbcca72ce6
Clean-up after test_prefix_iterator
7 years ago
Martin Ek
37470d341c
Add db.full_iterator()
7 years ago
Diego Ongaro
aa9550254a
Fix reverse iteration from a given key
...
Now when you reverse iterate past the last key, it goes backwards from the end.
When you reverse iterate before the first key, you get nothing out.
Note: This is a breaking change if users have come to depend on the old
behavior.
7 years ago
Tyler Neely
f6a27ae221
fix prefix iterator test
7 years ago
Tyler Neely
ba186b4bfa
fix prefix iterator by using a prefix extractor
7 years ago
Griffin Smith
15ad3666f5
Allow creating iterators over prefixes
...
Allow creating both db and column family iterators that are specific to
a key prefix, by setting the `prefix_same_as_start` read option when
creating the iterator.
Currently this only supports `Direction::Forward`, but it'd likely be
trivial to support `Backward` as well, by incrementing the given prefix
by one and seeking to the key before that key.
7 years ago
Volker Mische
6408a42c7a
Move tests to the default `tests` directory
...
Instead of specifying a custom test directory, use the default
Rust way of doing things (which is having a `tests` directory.
7 years ago
Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Alexander Regueiro
d9e0e9ad79
Made various aesthetic changes.
...
Normalized style headers, added item to CHANGELOG regarding imports.
8 years ago
Tyler Neely
aec7db81f2
Clean up code a bit, make clippy happier, use proper types.
8 years ago
disksing
1b9484284c
export `iterator.valid()`
9 years ago
ngaut
bb0ca27556
*: Fix clippy warnings.
9 years ago
Pete Hunt
09250315e8
More idiomatic iterators
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Steve Klabnik
a7fdf42ed8
Fix all warnings
9 years ago
Tyler Neely
a09580fec7
small refactor to get CF's working on batches at the cost of OOB CF handling
9 years ago
David Greenberg
bf0c2b3bc0
Add integration tests
9 years ago