Rohit Joshi
a0b707ca30
adding DB::destroy()
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
Oleksandr Anyshchenko
1038c71df8
Merge pull request #266 from aleksuss/clippy-lints
...
Applied clippy lints
6 years ago
Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
f9bbb13a1b
Merge pull request #264 from iSynaptic/gh-154
...
Confirm calling Options.increase_parallelism works on all platforms...
6 years ago
Jordan Terrell
b022f61073
Merge pull request #265 from iSynaptic/gh-36
...
Generic DB.create_cf and test for duplicate column families.
6 years ago
Jordan Terrell
a489cafe96
Merge pull request #263 from iSynaptic/gh-203
...
Adding set_readahead_size setter to ReadOptions...
6 years ago
Jordan Terrell
df12ddbd57
Adding more documentation to ReadOptions.set_readahead_size [skip ci]...
6 years ago
Jordan Terrell
ca1c76b2de
Add test to prove creating duplicate column family results in error...
6 years ago
Jordan Terrell
562f413f4c
Making DB.create_cf generic...
6 years ago
Jordan Terrell
bcbe685ba3
Merge pull request #262 from mohanson/patch-1
...
Handle std::result::Result in examples
6 years ago
Jordan Terrell
602a683646
Confirm calling Options.increase_parallelism works on all platforms...
6 years ago
Jordan Terrell
0a8aa1b636
Adding set_readahead_size setter to ReadOptions...
6 years ago
Mohanson
c08fd5cb93
Handle std::result::Result in examples
6 years ago
Jordan Terrell
47cd7ffe6b
Merge pull request #261 from aleksuss/rocksdb-5-17-2
...
Update rocksdb version up to 5.17.2
6 years ago
Oleksandr Anyshchenko
4f62063f3c
Update rocksdb version up to 5.17.2
6 years ago
Jordan Terrell
5d6f36b684
Merge pull request #247 from ekmartin/ek/properties
...
Add property getters
6 years ago
Martin Ek
54cf68d3d0
rustfmt
6 years ago
Martin Ek
7b38b29d8c
Add more tests
6 years ago
Martin Ek
3a069ff4dc
Return a Result from property getters
6 years ago
Oleksandr Anyshchenko
5023d717af
Merge pull request #246 from nervosnetwork/pinnable-slice
...
Implement PinnableSlice based API
6 years ago
Xuejie Xiao
aa2c695941
Use DBPath in PinnableSlice test
6 years ago
Xuejie Xiao
a651b19aa5
Code review fixes
6 years ago
Xuejie Xiao
81091a05ba
Ergonomic changes via AsRef
6 years ago
Xuejie Xiao
e19dad0141
Add lifetime to DBPinnableSlice to make sure it cannot outlive DB
6 years ago
Xuejie Xiao
dbd2ca6e4f
Implement PinnableSlice based API
6 years ago
Jordan Terrell
c485189f99
Merge pull request #259 from jamesray1/patch-1
...
Add requirements and headings
6 years ago
James Ray
50e9df917e
Add requirements and headings
6 years ago
Jordan Terrell
5b8686487d
Merge pull request #256 from iSynaptic/gh-230
...
Adding format checks to CI build...
6 years ago
Jordan Terrell
59d54070b9
Formatting recent updates to master branch [skip ci]
6 years ago
Jordan Terrell
42016349c9
Merge branch 'master' of https://github.com/rust-rocksdb/rust-rocksdb into gh-230
6 years ago
Jordan Terrell
2ade946da3
Merge pull request #255 from iSynaptic/gh-175
...
Using generic types to specify column families when opening database...
6 years ago
Jordan Terrell
5b47c1017f
Merge pull request #248 from ekmartin/ek/plain_table
...
Add support for plain table factories
6 years ago
Jordan Terrell
48c9e03e07
Using None instead of iter::empty for open_cf function...
6 years ago
Martin Ek
4ff418ab43
Pass options as immutable borrow
6 years ago
Jordan Terrell
ceb5744c51
Implementing review feedback...
6 years ago
Jordan Terrell
896dbc6c61
Applying changes from rustfmt...
6 years ago
Jordan Terrell
02d5b93612
Adding format checks to CI build...
6 years ago
Jordan Terrell
d00e03f72a
Using generic types to specify column families when opening database...
6 years ago
Jordan Terrell
58433c90c7
Merge pull request #254 from iSynaptic/gh-221
...
Adding test to validate correct behavior of prefix_iterator...
6 years ago
Jordan Terrell
e1a534ca5e
Removing unnecessary pub modifier on test functions...
6 years ago
Jordan Terrell
13be813880
Merge pull request #253 from iSynaptic/ergonomics-and-safety
...
Ergonomics and safety improvements
6 years ago
Jordan Terrell
f09fbaea71
Minor tweak to test comment...
6 years ago
Jordan Terrell
4c0d662435
Adding test to validate correct behavior of prefix_iterator...
6 years ago