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
Tyler Neely
b4c3f3ab2f
Export SubDBIterator
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Tyler Neely
0fc2441a2e
nuke DBResult
9 years ago
Steve Klabnik
a7fdf42ed8
Fix all warnings
9 years ago
Tyler Neely
a09580fec7
small refactor to get CF's working on batches at the cost of OOB CF handling
9 years ago
Tyler Neely
d78c250da8
Now friendly with 1.1 stable!
10 years ago
Tyler Neely
520d9cef43
Initial column family (broken) stubs.
10 years ago
Tyler Neely
269c5712a6
Run rustfmt on the code.
10 years ago
David Greenberg
c801628288
Reduce public api
10 years ago
David Greenberg
86ab20ffd6
Add iterator API
10 years ago
David Greenberg
909bc8819c
Improve safety of borrow checker with ffi objects
10 years ago
Tyler Neely
3bd37709fe
Added initial comparator code.
10 years ago
Tyler Neely
8d5b1e4c6c
Fix a few memory leaks. Add valgrind feature for conditionally building a testable binary. Get rid of unstable vector usage.
10 years ago
David Greenberg
a0f3ad3aa4
Add support for writebatch
10 years ago
David Greenberg
f2c6fc5a27
Make writing to a DB a trait
10 years ago
Tyler Neely
00df70b201
Update feature annotation.
10 years ago