Martin Ek
54cf68d3d0
rustfmt
6 years ago
Martin Ek
7b38b29d8c
Add more tests
6 years ago
Martin Ek
3a069ff4dc
Return a Result from property getters
6 years ago
Xuejie Xiao
aa2c695941
Use DBPath in PinnableSlice test
6 years ago
Xuejie Xiao
a651b19aa5
Code review fixes
6 years ago
Xuejie Xiao
dbd2ca6e4f
Implement PinnableSlice based API
6 years ago
Jordan Terrell
ceb5744c51
Implementing review feedback...
6 years ago
Jordan Terrell
896dbc6c61
Applying changes from rustfmt...
6 years ago
Jordan Terrell
d00e03f72a
Using generic types to specify column families when opening database...
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
4dfedd9dfd
Removing unnecessary let bindings in tests...
6 years ago
Jordan Terrell
cf4679d8e8
Some test cleanup...
6 years ago
Jordan Terrell
4a974054b2
Fixing incorrect copyright year...
6 years ago
Jordan Terrell
8f843a8eb7
Adding missing end-of-file newlines...
6 years ago
Jordan Terrell
21b9a9e98a
Key/value arguments are now generic types that impl AsRef<[u8]>...
6 years ago
Jordan Terrell
1a2c268274
Moving tests to take advantage of DBPath (ensuring cleanup)...
6 years ago
Martin Ek
33d30d4ca1
Add tests
6 years ago
Jordan Terrell
895c3f0c32
Fixing spelling typos...
6 years ago
Oleksandr Anyshchenko
05350ac88c
Added a clear method for WriteBatch
6 years ago
Oleksandr Anyshchenko
b7b456954a
Review changes
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Jordan Terrell
16183467ef
Changing comments to doc-comments [skip ci]
6 years ago
Jordan Terrell
9108205a6d
Test fix: Ensuring db cleanup doesn't happen until after test completion...
6 years ago
Jordan Terrell
0a1eff1833
Renaming DBName to DBPath and implementing AsRef<Path> on DBPath...
6 years ago
Eugene P
0caadb7d7e
Add initial checkpoints implementation and tests
...
Reformat code
Extract log_size_for_flush into constant
Fix test nits
Rename Checkpoint to CheckpointBuilder and fix test nit
Add comment to LOG_SIZE_FOR_FLUSH and fix CheckpointBuilder comment
Rename CheckpointBuilder to Checkpoint and create_checkpoint to save_to
Rename save_to to create_checkpoint to be consistent with C API naming
6 years ago
Oleksandr Anyshchenko
8863012a19
Methods `crate_cf` and `drop_cf` are immutable.
6 years ago
Tyler Neely
3f3851e720
Update test_iterator.rs
...
more completely resolve conflict
7 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
Tyler Neely
12093252c6
add slice transform support
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
Rick Richardson
d31e2bb88e
updated merge_operator framework to support merge types other than associative (support a partial merge and full merges that may or may not have an existing value)
7 years ago
Marat Safin
56e5829b89
use assert_eq! in test and return vec from unsafe
7 years ago
Marat Safin
f967d3c50f
list column family
7 years ago
Gary Tierney
b404f46012
Add a test covering DB::open_cf_descriptors()
7 years ago
Gary Tierney
c89a296dc1
Test that creating missing column families works correctly
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