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