Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
21b9a9e98a
Key/value arguments are now generic types that impl AsRef<[u8]>...
6 years ago
Oleksandr Anyshchenko
fe26e038ab
Added a helper function `get_cf_names` and doc-tests refactoring
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Oleksandr Anyshchenko
5a2647a436
Got rid of some rust compiler warnings.
6 years ago
Tyler Neely
17c5bf1c39
clear a few build warnings
7 years ago
Rick Richardson
9fcf924d22
clean up trace
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
Nitin Gupta
e1a42f6a44
Fix new value length in partial_merge_callback
8 years ago
Alexander Regueiro
8eef873c92
Fixed import for test.
8 years ago
Alexander Regueiro
12d79986b2
Changed rocksdb module name prefix to db.
...
Also rustfmt on source.
8 years ago
Tyler Neely
e9c843a1d4
use relative path for tests
8 years ago
Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Alexander Regueiro
ffefbd0907
Performed lots of clean-up on code.
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
aec7db81f2
Clean up code a bit, make clippy happier, use proper types.
9 years ago
Tyler Neely
8f445220bb
fix some clippy warnings
9 years ago
ngaut
3916a06789
*: Tiny clean up.
9 years ago
ngaut
bb0ca27556
*: Fix clippy warnings.
9 years ago
Ceri Storey
45d6436f0e
Format with rustfmt.
9 years ago
siddontang
e728a14a97
src: format codes.
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Tyler Neely
0fc2441a2e
nuke DBResult
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
d78c250da8
Now friendly with 1.1 stable!
9 years ago
Tyler Neely
269c5712a6
Run rustfmt on the code.
9 years ago
David Greenberg
86ab20ffd6
Add iterator API
9 years ago
David Greenberg
909bc8819c
Improve safety of borrow checker with ffi objects
9 years ago
Tyler Neely
8d5b1e4c6c
Fix a few memory leaks. Add valgrind feature for conditionally building a testable binary. Get rid of unstable vector usage.
9 years ago
David Greenberg
f2c6fc5a27
Make writing to a DB a trait
9 years ago
Tyler Neely
b3ae5fb67a
Fix breakage due to transmutation changes.
10 years ago
Tyler Neely
95c21ea171
get some basics working, still need to fix merge operators for post-1.0
10 years ago
Andrey Davydov
6948c2d77b
[code cosmetics]
...
(*) remove using of some deprecated functions
(*) reduce size of unsafe blocks
10 years ago
Marius Cobzarenco
9e33a8dcb5
Updated to compile with rustc 1.0.0.alpha.2
10 years ago
Tyler Neely
534266f09a
split some code into smaller files
10 years ago