Alexander Regueiro
8cb22e5f1b
Related enum type definitions to FFI.
8 years ago
Alexander Regueiro
882aaffd52
Improved doc comments.
8 years ago
Alexander Regueiro
57d4669d97
Added explicit `CompareFn` type for comparator function.
...
Changed return type of comparator function from `i32` to `std::cmp::Ordering`.
8 years ago
hh9527
51dd656272
Fix compile failed in stable/beta
8 years ago
hh9527
2bace2ca0d
Fix: https://github.com/spacejam/rust-rocksdb/issues/96 ( #1 )
...
* Update ffi_util.rs
* Update rocksdb.rs
8 years ago
Tyler Neely
e9c843a1d4
use relative path for tests
8 years ago
Tyler Neely
5446ab4dca
rename rocksdb-sys
8 years ago
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
a2e292b318
Now exports `Snapshot` at root-level.
8 years ago
Alexander Regueiro
d9e0e9ad79
Made various aesthetic changes.
...
Normalized style headers, added item to CHANGELOG regarding imports.
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
1bc2ac6a09
Reinstate a couple of "pub use"'s
...
These were accidentally removed in
e34692948e
8 years ago
Karl Hobley
3975276ee0
Examples/doctests for Options methods
8 years ago
Karl Hobley
4596aeda5f
Convert test_set_max_manifest_file_size into a doctest
8 years ago
Karl Hobley
e34692948e
Implement static linking
8 years ago
Karl Hobley
dd7423ef9f
Added deprecated add_merge_operator and add_comparitor methods
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
cbf98b6b23
Remove Options.set_filter_deletes
...
Fixes #79
Deprecated (and removed) as of RocksDB 4.10
7b79238b65
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
Karl Hobley
c0e0331d0c
Add docstrings from RocksDB comments
...
All the docstrings were taken from 869ae5d786/include/rocksdb/options.h
8 years ago
siddontang
edb0859029
support get statistics
8 years ago
zhangjinpeng1987
42c5bb92dc
set num levels
8 years ago
zhangjinpeng1987
fa038809e1
enable statistics
8 years ago
zhangjinpeng1987
f542987ba7
wal recovery mode
8 years ago
Dylan Wen
ad09a5fbe1
add set_max_manifest_file_size for Options
8 years ago
zhangjinpeng1987
c884ee38b7
add set_level_zero_file_num_compaction_trigger api
8 years ago
zhangjinpeng1987
5454956385
add set_level0_compaction_trigger api
8 years ago
zhangjinpeng1987
c9e104a4e5
add filter policy interface && add set_cache_index_and_filter_blocks
8 years ago
zhangjinpeng1987
ab9028c778
DBComressionType copyable
8 years ago
zhangjinpeng1987
b9bcc0900e
add compression_per_level options
8 years ago
jinpeng zhang
a783093048
add report_gb_io_stats option
8 years ago
ngaut
0dfdc06ddf
*: add an option to disable write-ahead-log.
8 years ago
Jay Lee
f781adc84b
add allow os buffer conf
8 years ago
Jay Lee
f92f15f111
add lru cache conf
8 years ago
Jay Lee
e2c0877388
option: add max_bytes_for_level_base option
8 years ago
Jay Lee
85bc98462e
options: add compression option
8 years ago
Jesse Ezell
66c54929cf
add iterator_cf to snapshot
8 years ago
Tim Maddison
68e34bcb79
Added some documentation
8 years ago