Jordan Terrell
b51002bc58
Preparing for 0.12.1 release [skip ci]
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
b3c10809fe
Implementing AsRef<[u8]> for DBVector...
6 years ago
Rohit Joshi
b0160daaca
fixing cargo fmt --all
6 years ago
Rohit Joshi
a0b707ca30
adding DB::destroy()
6 years ago
Rohit Joshi
dfdabd08e8
cargo fmt check
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
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
df12ddbd57
Adding more documentation to ReadOptions.set_readahead_size [skip ci]...
6 years ago
Jordan Terrell
562f413f4c
Making DB.create_cf generic...
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
Martin Ek
54cf68d3d0
rustfmt
6 years ago
Martin Ek
3a069ff4dc
Return a Result from property getters
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
59d54070b9
Formatting recent updates to master branch [skip ci]
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
d00e03f72a
Using generic types to specify column families when opening database...
6 years ago
Jordan Terrell
21b9a9e98a
Key/value arguments are now generic types that impl AsRef<[u8]>...
6 years ago
Jordan Terrell
4f61f96727
Adding iterator construction methods that accept ReadOptions...
6 years ago
Oleksandr Anyshchenko
deb6001cae
Usage `to_path` func and `get_cf_names` func was removed as redundant
6 years ago
Jordan Terrell
1a2c268274
Moving tests to take advantage of DBPath (ensuring cleanup)...
6 years ago
Jordan Terrell
857efff670
Adding lifetime to DBIterator and DBRawIterator...
6 years ago
Jordan Terrell
248b40b465
Adding lifetime to ColumnFamily...
6 years ago
Martin Ek
b01acb71a9
Use an options struct
6 years ago
Martin Ek
33d30d4ca1
Add tests
6 years ago
Martin Ek
369d2ab8a6
column_family -> cf for consistency
6 years ago
Martin Ek
312ad80f98
Add cf getters for properties
6 years ago
Martin Ek
22b34a40cb
Add property_value functions
6 years ago
Martin Ek
d82d5c6b77
Add plain table format
6 years ago
Jordan Terrell
e2949d094c
Removed new_bloom_filter function...
6 years ago
Oleksandr Anyshchenko
fe26e038ab
Added a helper function `get_cf_names` and doc-tests refactoring
6 years ago
Oleksandr Anyshchenko
05350ac88c
Added a clear method for WriteBatch
6 years ago
Roman Zeyde
73aa6bfd67
Allow setting options on the DB
...
This should allow changing options (e.g. `disable_auto_compactions`)
without closing and re-opening the database.
6 years ago
Oleksandr Anyshchenko
b7b456954a
Review changes
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Roman Zeyde
efdea4faab
Expose keep_log_file_num option
6 years ago