Gary Guo
473b1671c7
Always use pinnable slice for get operations ( #345 )
5 years ago
Oleksandr Anyshchenko
54ff3db8ec
Change a column family storing
5 years ago
Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
ca1c76b2de
Add test to prove creating duplicate column family results in error...
6 years ago
Jordan Terrell
ceb5744c51
Implementing review feedback...
6 years ago
Jordan Terrell
d00e03f72a
Using generic types to specify column families when opening database...
6 years ago
Jordan Terrell
895c3f0c32
Fixing spelling typos...
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
0a1eff1833
Renaming DBName to DBPath and implementing AsRef<Path> on DBPath...
6 years ago
Oleksandr Anyshchenko
8863012a19
Methods `crate_cf` and `drop_cf` are immutable.
6 years ago
Martin Ek
17588a7658
Make sure DB is dropped after all tests
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
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
Richard Dodd
63a77d22c9
Add some documentation and wrap column_family_t
8 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
Karl Hobley
f8e96a02df
Improve naming of some of the new Options methods
...
None of these methods have been in a past released version so I don't think we should worry about backwards compatibility.
Changes as follows:
- Renamed ``compression`` to ``set_compression_type``. I think this is a much clearer name
- Renamed ``add_merge_operator`` to ``set_merge_operator`` and ``add_comparator`` to ``set_comparator``. Both of these methods replace the entire value of their respective option so "add" is the wrong term to use here.
- Renamed ``set_block_cache_size_mb`` to ``rocksdb_options_optimize_for_point_lookup``. To match RocksDB's API
8 years ago
Karl Hobley
651a2106fc
Added an Error type
...
This makes it easier for people who are using the try!() macro to convert errors into their own Error type. It isn't possible to diffrentiate between errors raised from RocksDB and other string errors at the moment.
This adds a simple ``Error`` type that wraps ``String``. People using RocksDB can now implement ``impl From<rocksdb::Error> for MyError`` and add custom behaviour for handling RocksDB errors.
8 years ago
Tyler Neely
a5becb4308
move merge operator column family test to ignored test for now
8 years ago
Tyler Neely
aec7db81f2
Clean up code a bit, make clippy happier, use proper types.
8 years ago
ngaut
bb0ca27556
*: Fix clippy warnings.
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Tyler Neely
0fc2441a2e
nuke DBResult
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
Tyler Neely
c5e6fb30dd
Add more (failing) cf tests
9 years ago
Tyler Neely
9f55661eba
checkpointing cf work
9 years ago
Tyler Neely
4db1723001
Fix pointer use for opening column families.
9 years ago
Tyler Neely
520d9cef43
Initial column family (broken) stubs.
9 years ago