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
timlyo
6e780cf4ac
main.rs is not used
8 years ago
Tyler Neely
aec7db81f2
Clean up code a bit, make clippy happier, use proper types.
8 years ago
Tyler Neely
8f445220bb
fix some clippy warnings
8 years ago
Tyler Neely
c005eb9c22
Bump libc crate to 0.2.10, fix the improper use of u64 where usize should have been used in some places.
9 years ago
Tyler Neely
740f3735d0
touchups to make arkpar's backport work
9 years ago
arkpar
cc6e143318
Changed ffi types to pointer for i686 compatibility
9 years ago
petevine
7e491ce913
Update ffi.rs
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
a7f36e53b8
Export WriteOptions.
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
4d4a140f9e
Export WriteOptions.
9 years ago