Renar Narubin
6cf5be4a61
Add raw_iterator_cf_opt to the DB API
...
The underlying functionality already existed, but it wasn't exposed to
the top-level API.
6 years ago
Valerian Saliou
c7e08cfd4b
Add docs
6 years ago
Valerian Saliou
242d1bf8fd
Add docs
6 years ago
Valerian Saliou
a3b0047487
Fmt pass
6 years ago
Valerian Saliou
a4b60075b9
Add ‘flush’
...
Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name>
6 years ago
Jihyun Yu
5aeb49137d
enable sse4.2/pclmul for accelerated crc32c
6 years ago
Oleksandr Anyshchenko
ea770309c8
Merge pull request #292 from xiaobogaga/addcomment
...
Added a comment for ReadOptions.set_iterate_upper_bound method.
6 years ago
xiaobogaga
f997a0a298
shorter comment
6 years ago
xiaobogaga
e99bf485ef
address comment ( #292 )
6 years ago
xiaobogaga
3cd5c606a7
add comment for ReadOptions.set_iterate_upper_bound method.
6 years ago
Oleksandr Anyshchenko
0197296bba
Merge pull request #291 from rhurkes/adds_contribution_guide
...
Аdds contribution guide
6 years ago
Rob Hurkes
bbc1b3c315
includes licensing note for code contributions
6 years ago
Rob Hurkes
6efb0f2874
adds contribution guide
6 years ago
Jordan Terrell
218edeffcc
Merge pull request #290 from baptistejamin/master
...
Updates RocksDB to 5.18.3 & implement delete_range and delete_range_cf
6 years ago
Jordan Terrell
4e81ec86dd
Merge pull request #280 from ekmartin/no_alloc_slice_transform
...
Remove allocations from SliceTransform
6 years ago
Valerian Saliou
d55b22ce16
Documented 'delete_range_cf'
6 years ago
Valerian Saliou
ff574e5a0c
cargo fmt pass on db.rs
6 years ago
Valerian Saliou
09da01d457
Update db.rs
6 years ago
Oleksandr Anyshchenko
d0c5c35546
Merge pull request #289 from romanz/master
...
Update DB::compact_range_cf() arguments to be consistent with other methods
6 years ago
Valerian Saliou
2613d0688e
Add comments + tests to delete_range()
6 years ago
Baptiste Jamin
7e07dacff9
Implement delete_range and delete_range_cf
6 years ago
Baptiste Jamin
8f48e6c351
Bump RocksDB to 5.18.3 (prevents deadlocks)
6 years ago
Roman Zeyde
4701226097
Update DB::compact_range_cf() arguments to be consistent with other methods
6 years ago
Jordan Terrell
b51002bc58
Preparing for 0.12.1 release [skip ci]
6 years ago
Jordan Terrell
267d92cbf9
Merge pull request #285 from aleksuss/allow_mmap
...
Added a possibility to enable mmap files for reads and writes
6 years ago
Jordan Terrell
8d76566987
Merge pull request #284 from elichai/iterator_cf
...
Added a function to create iterator with specific CF and ReadOptions
6 years ago
Elichai Turkel
a3d0cdd8c7
Added docs to iterator_cf_opt
6 years ago
Oleksandr Anyshchenko
9f74dbcdb1
Added a possibility to enable mmap files for reads and writes
6 years ago
Elichai Turkel
57b903d769
Added a function to create iterator with specific CF and ReadOptions
6 years ago
Martin Ek
91a536d03b
Remove allocations from SliceTransform's callback
6 years ago
Jordan Terrell
559d7a7eab
Releasing v0.12.0...
6 years ago
Jordan Terrell
84aa64b8de
Merge pull request #276 from iSynaptic/release-prep-0.12.0
...
Updated changelog to list recently merged functionality [skip ci]
6 years ago
Jordan Terrell
976cd69b9c
Merge pull request #277 from iSynaptic/dbvector-asref
...
Implementing AsRef<[u8]> for DBVector...
6 years ago
Jordan Terrell
c78fa81b17
Updating changelog [skip ci]
6 years ago
Jordan Terrell
9e98f60a65
Adding test for AsRef<[u8]> impl on DBVector...
6 years ago
Jordan Terrell
b3c10809fe
Implementing AsRef<[u8]> for DBVector...
6 years ago
Jordan Terrell
f0cfc5d50e
Updated changelog to list recently merged functionality...
6 years ago
Oleksandr Anyshchenko
09dce1d298
Merge pull request #272 from rohitjoshi/master
...
Support for restore from the backup
6 years ago
Rohit Joshi
b0160daaca
fixing cargo fmt --all
6 years ago
Rohit Joshi
8e1ed52021
Merge branch 'master' of https://github.com/rohitjoshi/rust-rocksdb
6 years ago
Rohit Joshi
a0b707ca30
adding DB::destroy()
6 years ago
Rohit Joshi
3460474c82
Update Cargo.toml
6 years ago
Rohit Joshi
ae8281d7fa
Update Cargo.toml
6 years ago
Rohit Joshi
dfdabd08e8
cargo fmt check
6 years ago
Rohit Joshi
1b4248b85f
Merge branch 'master' of https://github.com/rohitjoshi/rust-rocksdb
6 years ago
Rohit Joshi
419084cf0f
adding backup & restore test case
6 years ago
Rohit Joshi
7b7cf00cf6
Updating rust doc
...
```
Restore from the latest backup
Arguments
```
db_dir - A path to the database directory
wal_dir - A path to the wal directory
opts - Restore options
```
Example
```
ⓘ
use rocksdb::backup::{BackupEngine, BackupEngineOptions};
let backup_opts = BackupEngineOptions::default();
let backup_engine = BackupEngine::open(&backup_opts, &backup_path).unwrap();
let mut restore_option = rocksdb::backup::RestoreOptions::default();
restore_option.set_keep_log_files(true); /// true to keep log files
if let Err(e) = backup_engine.restore_from_latest_backup(&db_path, &wal_dir, &restore_option) {
error!("Failed to restore from the backup. Error:{:?}", e);
return Err(e.to_string());
}
```
6 years ago
Rohit Joshi
f8267c8303
updating rust doc
6 years ago
Rohit Joshi
0a4cedc0a3
Specifying two separate Path
...
Replacing single path `P` with `D: AsRef<Path>, W: AsRef<Path>`
6 years ago
Rohit Joshi
e3aef69f38
issue#135 Expose API to restore database from backups
6 years ago