Jesse Rusak
8817fc7b1c
Refactor db.rs and lib.rs into smaller pieces ( #395 )
5 years ago
wqfish
4f9524bd36
Move to Rust 2018 ( #375 )
5 years ago
Gary Guo
473b1671c7
Always use pinnable slice for get operations ( #345 )
5 years ago
Nathan Fiedler
6e39fd715b
Add get_updates_since() wrapper and its iterator ( #332 )
5 years ago
Oleksandr Anyshchenko
a05151f6ae
Merge with master and update changelog
5 years ago
rnarubin
9e75179e77
Implement Send and Sync for useful types ( #318 )
...
The Send and Sync traits aren't auto-implemented on the many types which
wrap a raw pointer to some RocksDB struct. Most of these types are
nevertheless safe to use in Send and Sync context, so they should be
marked as such
5 years ago
Oleksandr Anyshchenko
54ff3db8ec
Change a column family storing
5 years ago
Valerian Saliou
a4b60075b9
Add ‘flush’
...
Signed-off-by: Valerian Saliou <valerian@valeriansaliou.name>
6 years ago
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