Michal Nazarewicz
0af1f8e645
Add `DBRawIteratorWithThreadMode::item` method returning (key, value) ( #647 )
3 years ago
Oleksandr Anyshchenko
6ed14c3e34
Fix CI builds ( #582 )
3 years ago
Stanislav Tkach
4a064d0f72
Use pretty_assertions in tests ( #451 )
4 years ago
Oleksandr Anyshchenko
d4023f2683
Add clippy linter in CI ( #417 )
5 years ago
wqfish
4f9524bd36
Move to Rust 2018 ( #375 )
5 years ago
Gary Guo
23608e905e
Avoid copy in DBRawIterator::{key, value}
...
Thanks to Rust's lifetime and borrow checker, it's completely safe
to access internal buffer without copying.
5 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
Martin Ek
17588a7658
Make sure DB is dropped after all tests
7 years ago
Karl Hobley
1c3333636d
Implement RawIterator.seek_for_prev
8 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.
8 years ago
Karl Hobley
6f1aae1997
Remove just_seeked from DBRawIterator
...
This as added to make while-loops easy:
while iter.next() {
...
}
But this involves adding a layer of custom logic on top of the RocksDB
API. This is probably a bad idea given that this API is meant to closely
match the underlying iterator API in RocksDB, so this commit changes
that.
The new way to iterate is as follows:
while iter.valid() {
...
iter.next();
}
8 years ago
Karl Hobley
73d75af5c3
Added tests for DBRawIterator
8 years ago