Volker Mische
af061fb6db
Make BackupEngine methods public
...
In the `BackupEngine` the `create_new_backup` and `purge_old_backups`
methods were private, leading to those warnings.
warning: method is never used: `create_new_backup`, #[warn(dead_code)] on by default
--> src/backup.rs:61:5
|
61 | fn create_new_backup(&mut self, db: &DB) -> Result<(), Error> {
| _____^ starting here...
62 | | unsafe {
63 | | ffi_try!(ffi::rocksdb_backup_engine_create_new_backup(self.inner, db.inner));
64 | | Ok(())
65 | | }
66 | | }
| |_____^ ...ending here
warning: method is never used: `purge_old_backups`, #[warn(dead_code)] on by default
--> src/backup.rs:68:5
|
68 | fn purge_old_backups(&mut self, num_backups_to_keep: usize) -> Result<(), Error> {
| _____^ starting here...
69 | | unsafe {
70 | | ffi_try!(ffi::rocksdb_backup_engine_purge_old_backups(self.inner,
71 | | num_backups_to_keep as uint32_t));
72 | | Ok(())
73 | | }
74 | | }
| |_____^ ...ending here
Those are now public.
8 years ago
Tyler Neely
c1749c0e9d
Merge pull request #110 from vmx/build-instructions
...
Fail if RocksDB or Snappy source is missing
8 years ago
Tyler Neely
92f44fba9d
Merge pull request #111 from vmx/patch-1
...
Makefiles use tabs
8 years ago
Volker Mische
08ecf0db1e
Makefiles use tabs
...
The indentation in Makefiles is tabs. Without this change it failed for me with:
Makefile:4: *** missing separator. Stop
8 years ago
Volker Mische
a890ec3f14
Fail if RocksDB or Snappy source is missing
8 years ago
Tyler Neely
26c9b9bc8f
Merge pull request #106 from tatsuya6502/fix-ptr-casts
...
Replace cast `as *const i8` with `as *const c_char` to prevent compile errors in 32-bit ARM systems
8 years ago
Tatsuya Kawano
d4c9d647ee
Replace cast `as *const i8` with `as *const c_char`.
...
This solves the following type mismatch error in 32-bit ARM systems.
error[E0308]: mismatched types
key.as_ptr() as *const i8,
^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8
8 years ago
Tyler Neely
da7590e575
Merge branch 'master' of github.com:spacejam/rust-rocksdb
8 years ago
Tyler Neely
8d975ee67b
shift docs to docs.rs
8 years ago
Tyler Neely
60aa9889fe
Merge pull request #105 from derekdreery/add-doc
...
Add some documentation and wrap column_family_t
8 years ago
Richard Dodd
d50574f9f2
Make requested changes
8 years ago
Richard Dodd
63a77d22c9
Add some documentation and wrap column_family_t
8 years ago
Tyler Neely
2a29b0ae5f
cut version 0.6.0
8 years ago
Tyler Neely
253ce55b47
Merge pull request #102 from tmccombs/compaction-filter
...
Compaction filter
8 years ago
Thayne McCombs
e84132dfbe
Add set_compaction_filter
...
Add method to set the compaction filter for a database.
8 years ago
Thayne McCombs
a467e6bfed
Add methods for compacting ranges.
8 years ago
Tyler Neely
3310bc669b
Merge pull request #101 from nitingupta910/upstream
...
Fix new value length in partial_merge_callback
8 years ago
Nitin Gupta
e1a42f6a44
Fix new value length in partial_merge_callback
8 years ago
Tyler Neely
5e3f4351a9
update changelog
8 years ago
Tyler Neely
6d37ead6c0
Merge pull request #99 from alexreg/cleanup
...
Added explicit `CompareFn` type for comparator function.
8 years ago
Alexander Regueiro
8eef873c92
Fixed import for test.
8 years ago
Alexander Regueiro
12d79986b2
Changed rocksdb module name prefix to db.
...
Also rustfmt on source.
8 years ago
Alexander Regueiro
d28eba2ff5
Added basic support for backups.
8 years ago
Alexander Regueiro
75622d3660
Fixed method names in doc tests.
8 years ago
Tyler Neely
deaf793af8
Merge pull request #100 from kaedroho/patch-3
...
Set date of 0.5 release in changelog
8 years ago
Karl Hobley
2ea4a82ed8
Set date of 0.5 release in changelog
8 years ago
Alexander Regueiro
e67dc3ec7f
Fixed method names.
8 years ago
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
Tyler Neely
d965057a2b
cut 0.5.0
8 years ago
Tyler Neely
a84012c3c8
Merge pull request #93 from spacejam/0.5.0
...
0.5.0
8 years ago
Tyler Neely
a2e9168694
Merge pull request #97 from hh9527/master
...
Fix: https://github.com/spacejam/rust-rocksdb/issues/96
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
60049edad0
Merge pull request #94 from kaedroho/patch-2
...
Update CHANGELOG.txt for 0.5.0 release
8 years ago
Karl Hobley
bfcae86500
Update CHANGELOG.txt for 0.5.0 release
8 years ago
Tyler Neely
12b96d06ee
rocksdb_sys -> librocksdb_sys
8 years ago
Tyler Neely
4337e1f3a2
fix path in travis config
8 years ago
Tyler Neely
e9c843a1d4
use relative path for tests
8 years ago
Tyler Neely
5407d06f4c
update changelog
8 years ago
Tyler Neely
5446ab4dca
rename rocksdb-sys
8 years ago
Tyler Neely
332683a63b
bump metadata on rocksdb-sys
8 years ago
Tyler Neely
2f7b25d25a
format license
8 years ago
Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Tyler Neely
7f2188c39d
Merge pull request #92 from alexreg/error
...
Implemented `std::error::Error` trait for error type.
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
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