Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Alexander Regueiro
7ea617852a
Removed redundant default implementation of `cause` fn for error type.
8 years ago
Alexander Regueiro
ffc541c650
Implemented `std::error::Error` trait for error type.
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Alexander Regueiro
364f3abd49
Added `ffi_try!` macro and adapted native calls to use it.
...
`ffi_try!` simplifies calls to native functions with an error pointer as their last parameter.
8 years ago
Alexander Regueiro
ffefbd0907
Performed lots of clean-up on code.
8 years ago
Karl Hobley
3324574b50
Use Path type for file paths
8 years ago
Karl Hobley
9d9c5566d6
Rename count to len
8 years ago
siddontang
daabb5d1eb
support writebatch is_empty
8 years ago
siddontang
ee7483204c
support writebatch count
8 years ago
zhangjinpeng1987
9ec9d74a1d
add set_iterate_upper_bound api for readoptions
8 years ago
Karl Hobley
cfa206a955
Fixed spelling mistake
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
Karl Hobley
7b2e1b91a7
Implement Debug for DB
8 years ago
siddontang
d856b804c0
save path for later use
8 years ago
ngaut
0dfdc06ddf
*: add an option to disable write-ahead-log.
8 years ago
Jesse Ezell
66c54929cf
add iterator_cf to snapshot
8 years ago
Tim Maddison
68e34bcb79
Added some documentation
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
arkpar
cc6e143318
Changed ffi types to pointer for i686 compatibility
9 years ago
disksing
1b9484284c
export `iterator.valid()`
9 years ago
siddontang
b87bb3f255
support snapshot get/get_cf
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
Ceri Storey
e36d9892e7
Add DB#write variant with WriteOptions.
9 years ago
Ceri Storey
14d02a3631
Add variants for other DB/Writable methods that take WriteOptions.
9 years ago
Ceri Storey
5744f128fe
Publicise.
9 years ago
Ceri Storey
a1dd3f8f22
Add DB#put_cf_opt for WriteOptions.
9 years ago
Ceri Storey
df6d49506b
Add a DB#put_opt method for use with writeOptions.
9 years ago
siddontang
e728a14a97
src: format codes.
9 years ago
petevine
83c055d43b
Fix ARM
9 years ago
Pete Hunt
09250315e8
More idiomatic iterators
9 years ago
Ben Edwards
d531fa7f3d
Change iterator to take handle
...
This changes the DBIterator interface to match the convention of taking
a handle over a string as per the other column-family-aware apis.
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Tyler Neely
0fc2441a2e
nuke DBResult
9 years ago
Tyler Neely
a2334ab39a
update README for latest rocksdb version
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
e521936894
Add basic column family iterator support.
9 years ago
Tyler Neely
36b4ad62cf
Add column family implementations for put/merge/delete
9 years ago
Tyler Neely
d78c250da8
Now friendly with 1.1 stable!
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
Michael Neumann
18aa0d37be
Allow RocksDB to be shared across threads
9 years ago
David Greenberg
2e367520ea
Fix boxing problems and add more tests
9 years ago
Tyler Neely
269c5712a6
Run rustfmt on the code.
9 years ago
David Greenberg
3c25739170
Free err strings correctly
9 years ago