Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Mohanson
c08fd5cb93
Handle std::result::Result in examples
6 years ago
Xuejie Xiao
a651b19aa5
Code review fixes
6 years ago
Xuejie Xiao
dbd2ca6e4f
Implement PinnableSlice based API
6 years ago
Jordan Terrell
896dbc6c61
Applying changes from rustfmt...
6 years ago
Oleksandr Anyshchenko
deb6001cae
Usage `to_path` func and `get_cf_names` func was removed as redundant
6 years ago
Jordan Terrell
248b40b465
Adding lifetime to ColumnFamily...
6 years ago
Martin Ek
b01acb71a9
Use an options struct
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
b7b456954a
Review changes
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Thomas Tanon
8f545b6848
Makes ColumnFamily Send
6 years ago
Eugene P
0caadb7d7e
Add initial checkpoints implementation and tests
...
Reformat code
Extract log_size_for_flush into constant
Fix test nits
Rename Checkpoint to CheckpointBuilder and fix test nit
Add comment to LOG_SIZE_FOR_FLUSH and fix CheckpointBuilder comment
Rename CheckpointBuilder to Checkpoint and create_checkpoint to save_to
Rename save_to to create_checkpoint to be consistent with C API naming
6 years ago
Oleksandr Anyshchenko
8863012a19
Methods `crate_cf` and `drop_cf` are immutable.
6 years ago
Martin Ek
aaf2270609
Add index_type customization to BlockBasedOptions
7 years ago
Martin Ek
8acabab60f
Add memtable factory customization
7 years ago
Tyler Neely
12093252c6
add slice transform support
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
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
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
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
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
Richard Dodd
63a77d22c9
Add some documentation and wrap column_family_t
8 years ago
Thayne McCombs
e84132dfbe
Add set_compaction_filter
...
Add method to set the compaction filter for a database.
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
Tyler Neely
e9c843a1d4
use relative path for tests
8 years ago
Tyler Neely
5446ab4dca
rename rocksdb-sys
8 years ago
Tyler Neely
ad2c15ac7c
prep for 0.5 release
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Alexander Regueiro
364f3abd49
Added `ffi_try!` macro and adapted native calls to use it.
...
`ffi_try!` simplifies calls to native functions with an error pointer as their last parameter.
8 years ago
Alexander Regueiro
a2e292b318
Now exports `Snapshot` at root-level.
8 years ago
Alexander Regueiro
d9e0e9ad79
Made various aesthetic changes.
...
Normalized style headers, added item to CHANGELOG regarding imports.
8 years ago
Alexander Regueiro
ffefbd0907
Performed lots of clean-up on code.
8 years ago
Karl Hobley
1bc2ac6a09
Reinstate a couple of "pub use"'s
...
These were accidentally removed in
e34692948e
8 years ago
Karl Hobley
e34692948e
Implement static linking
8 years ago
Karl Hobley
651a2106fc
Added an Error type
...
This makes it easier for people who are using the try!() macro to convert errors into their own Error type. It isn't possible to diffrentiate between errors raised from RocksDB and other string errors at the moment.
This adds a simple ``Error`` type that wraps ``String``. People using RocksDB can now implement ``impl From<rocksdb::Error> for MyError`` and add custom behaviour for handling RocksDB errors.
8 years ago
zhangjinpeng1987
f542987ba7
wal recovery mode
8 years ago
Jay Lee
85bc98462e
options: add compression option
8 years ago
Ceri Storey
a7f36e53b8
Export WriteOptions.
9 years ago
Ceri Storey
45d6436f0e
Format with rustfmt.
9 years ago
Ceri Storey
4d4a140f9e
Export WriteOptions.
9 years ago
siddontang
e728a14a97
src: format codes.
9 years ago
Pete Hunt
09250315e8
More idiomatic iterators
9 years ago