Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Tyler Neely
cfc3cbb551
Merge pull request #88 from alexreg/cleanup
...
Mainly the addition of the `ffi_try!` macro, plus a few minor things @kaedroho mentioned in the comments for the PR you already accepted.
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
Tyler Neely
27210b42bc
Merge pull request #87 from alexreg/cleanup
...
Performed lots of clean-up on code.
8 years ago
Alexander Regueiro
c4254a7fdd
Added license header.
8 years ago
Alexander Regueiro
ffefbd0907
Performed lots of clean-up on code.
8 years ago
Tyler Neely
f342a62ac2
Merge pull request #86 from kaedroho/path-tweaks
...
Use PathBuf/Path type for file paths
8 years ago
Karl Hobley
3324574b50
Use Path type for file paths
8 years ago
Tyler Neely
3abd4eb40f
Merge pull request #81 from kaedroho/doctests
...
Doctests for Options methods
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
Tyler Neely
a372ea678a
Merge pull request #80 from kaedroho/static-linking
...
Implement static linking
8 years ago
Karl Hobley
108c9cdf61
Convert tabs to spaces
8 years ago
Karl Hobley
59ddbe55bd
Update travis config
8 years ago
Karl Hobley
31cc40a1fe
Tick off Windows support
8 years ago
Karl Hobley
1d641c681e
RocksDB is no longer a prerequisite
8 years ago
Karl Hobley
e34692948e
Implement static linking
8 years ago
Tyler Neely
9b251d8cc3
Merge pull request #82 from kaedroho/rename-options-methods
...
Improve naming of some of the new Options methods
8 years ago
Karl Hobley
dd7423ef9f
Added deprecated add_merge_operator and add_comparitor methods
8 years ago
Tyler Neely
cb7ca98b3f
Merge pull request #83 from kaedroho/remove-options-set_filter_deletes
...
Remove Options.set_filter_deletes
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
Tyler Neely
6bfad9eb85
Merge branch 'kaedroho-patch-1'
8 years ago
Tyler Neely
cff724a070
Merge branch 'patch-1' of https://github.com/kaedroho/rust-rocksdb into kaedroho-patch-1
8 years ago
Tyler Neely
a53055838c
Merge pull request #78 from kaedroho/writebatch-len-and-is_empty
...
Implement len() and is_empty() methods on WriteBatch
8 years ago
Tyler Neely
b04db8dffb
Merge pull request #77 from kaedroho/options-set_iterate_upper_bound
...
Add set_iterate_upper_bound method on ReadOptions
8 years ago
Tyler Neely
803f2380c2
Merge pull request #75 from kaedroho/db-path
...
Port path() method from ngauts fork and implement Debug for DB
8 years ago
Tyler Neely
7839fdc005
Merge pull request #74 from kaedroho/error-type
...
Added an Error type
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
Tyler Neely
12259e0c1b
remove old rust 1.2 from travis config
8 years ago
Tyler Neely
c148def1b1
Merge pull request #72 from kaedroho/new-options-methods
...
Cherry pick new options methods from ngaut's fork
8 years ago
Tyler Neely
f723ab8667
Merge pull request #73 from kaedroho/changelog
...
Start a changelog
8 years ago
Karl Hobley
8fd71c4d9c
Start a changelog
...
Every project should have one of these :)
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