Oleksandr Anyshchenko
9a7270ef9d
Fixed crash `test_column_family` test on macOS
6 years ago
Oleksandr Anyshchenko
5a2647a436
Got rid of some rust compiler warnings.
6 years ago
Oleksandr Anyshchenko
8863012a19
Methods `crate_cf` and `drop_cf` are immutable.
6 years ago
Martin Ek
e08ad288c4
Add disable_cache method
7 years ago
Roman Zeyde
45edfd2e90
Expose compaction_readahead_size option
7 years ago
Martin Ek
530dc462d5
Add DBOptions.set_wal_dir
7 years ago
Martin Ek
aaf2270609
Add index_type customization to BlockBasedOptions
7 years ago
Martin Ek
37470d341c
Add db.full_iterator()
7 years ago
Martin Ek
8acabab60f
Add memtable factory customization
7 years ago
Martin Ek
b3559793aa
Add set_memtable_prefix_bloom_ratio
7 years ago
Maxim Molchanov
278f7762f2
Update db.rs
7 years ago
Diego Ongaro
aa9550254a
Fix reverse iteration from a given key
...
Now when you reverse iterate past the last key, it goes backwards from the end.
When you reverse iterate before the first key, you get nothing out.
Note: This is a breaking change if users have come to depend on the old
behavior.
7 years ago
Tyler Neely
12093252c6
add slice transform support
7 years ago
Tyler Neely
17c5bf1c39
clear a few build warnings
7 years ago
Diego Ongaro
fc40d10b86
Expose advise_random_on_open option
7 years ago
Jordan Terrell
3286444228
Adding Send marker trait to Options
7 years ago
Griffin Smith
15ad3666f5
Allow creating iterators over prefixes
...
Allow creating both db and column family iterators that are specific to
a key prefix, by setting the `prefix_same_as_start` read option when
creating the iterator.
Currently this only supports `Direction::Forward`, but it'd likely be
trivial to support `Backward` as well, by incrementing the given prefix
by one and seeking to the key before that key.
7 years ago
Rick Richardson
9fcf924d22
clean up trace
7 years ago
Rick Richardson
d31e2bb88e
updated merge_operator framework to support merge types other than associative (support a partial merge and full merges that may or may not have an existing value)
7 years ago
Rick Richardson
8a64585520
changed try_ffi to take trailing comma and updated rustfmt accordingly
7 years ago
Marat Safin
56e5829b89
use assert_eq! in test and return vec from unsafe
7 years ago
Marat Safin
f967d3c50f
list column family
7 years ago
Gary Tierney
06a39278f3
Use ColumnFamilyDescriptor::new() in DB::open_cf()
7 years ago
Gary Tierney
a4a3e1d7c4
Add documentation for ColumnFamilyDescriptor
7 years ago
Griffin Smith
a4587f62c1
Remove `set_disable_data_sync`
...
This is removed from rocksdb core as of facebook/rocksdb@eb912a9, and
having the reference in the ffi causes loading the shared library to
break.
7 years ago
Gary Tierney
1af596a4b3
Expose create_missing_column_families option
7 years ago
Gary Tierney
9afa195a33
Add support for opening a column family with options
...
Adds a new `DB::open_cf_descriptors` method that allows passing in Options for
each column family. A new `ColumnFamilyDescriptor` type was added to contain
the congfiguration for each column family. This fixes an issue where a column
family was created with non-default options, and then fails to re-open due to a
config mismatch.
7 years ago
Nikhil Benesch
9d0a5e2819
use bindgen to generate ffi
...
Closes #128 .
7 years ago
Nikhil Benesch
633caccace
ensure doctests are not elided by linker
...
opts.set_disable_data_sync was removed from RocksDB (commit eb912a9),
but our doctest didn't fail because the function opts.set_disable_data_sync
was called in, badly_tuned_for_somebody_elses_disk, was elided by the linker.
Remove this function to ensure the doctest actually exercises the code
path.
7 years ago
Richard Dodd
514e8904d7
Add to options
...
- set_allow_concurrent_memtable_write
And fix test
7 years ago
Richard Dodd
620091d31b
Make docs match new function
7 years ago
Richard Dodd
90f5e0103e
Remove unnecessary function
7 years ago
Richard Dodd
2a7ab0f805
Include change from 5.4.5
...
Change "use_direct_writes" to "use_direct_io_for_flush_and_compaction"
7 years ago
Richard Dodd
ccb40173fe
Update rocksdb
...
Remove option that no longer exists in rocksdb
7 years ago
Karl Hobley
1c3333636d
Implement RawIterator.seek_for_prev
7 years ago
Karl Hobley
6b407a3486
Implement support for DirectIO
...
As per: 972f96b3fb
7 years ago
David Ross
5b9b159184
Implement Clone and AsRef<str> for Error.
8 years ago
debris
0751a22dc6
Fixed race condition in tests
8 years ago
Ryan Schmukler
a967bd4fd5
Expose ReadOptions from DB
8 years ago
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
Karl Hobley
6f1aae1997
Remove just_seeked from DBRawIterator
...
This as added to make while-loops easy:
while iter.next() {
...
}
But this involves adding a layer of custom logic on top of the RocksDB
API. This is probably a bad idea given that this API is meant to closely
match the underlying iterator API in RocksDB, so this commit changes
that.
The new way to iterate is as follows:
while iter.valid() {
...
iter.next();
}
8 years ago
Karl Hobley
d9725bcff9
Allow DBIterator to be converted into DBRawIterator
8 years ago
Karl Hobley
1270e572d0
Moved some code
8 years ago
Karl Hobley
c8b7e8e7dd
Reimplement DBIterator on top of DBRawIterator
8 years ago
Karl Hobley
cb136318ce
Removed seek_for_prev
...
Not implemented in this version of RocksDB
8 years ago
Karl Hobley
007616446f
Make doctests runnable
8 years ago
Karl Hobley
3bdc7e4bc4
Docs for raw iterator
8 years ago
Karl Hobley
05c01f4e9e
Implement seek_for_prev
8 years ago
Karl Hobley
6ad575fc04
Add safe versions of key/value
8 years ago
Karl Hobley
8307be324f
Basic implementation of raw_iterator
...
An alternative iterator API that directly maps to RocksDB's iterator API
with all the flexibility and unsafety it brings
8 years ago