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
Tatsuya Kawano
d4c9d647ee
Replace cast `as *const i8` with `as *const c_char`.
...
This solves the following type mismatch error in 32-bit ARM systems.
error[E0308]: mismatched types
key.as_ptr() as *const i8,
^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8
8 years ago
Richard Dodd
d50574f9f2
Make requested changes
8 years ago
Richard Dodd
63a77d22c9
Add some documentation and wrap column_family_t
8 years ago
Tyler Neely
2a29b0ae5f
cut version 0.6.0
8 years ago
Thayne McCombs
e84132dfbe
Add set_compaction_filter
...
Add method to set the compaction filter for a database.
8 years ago
Thayne McCombs
a467e6bfed
Add methods for compacting ranges.
8 years ago
Nitin Gupta
e1a42f6a44
Fix new value length in partial_merge_callback
8 years ago
Alexander Regueiro
8eef873c92
Fixed import for test.
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
Alexander Regueiro
75622d3660
Fixed method names in doc tests.
8 years ago
Alexander Regueiro
e67dc3ec7f
Fixed method names.
8 years ago
Alexander Regueiro
8cb22e5f1b
Related enum type definitions to FFI.
8 years ago
Alexander Regueiro
882aaffd52
Improved doc comments.
8 years ago
Alexander Regueiro
57d4669d97
Added explicit `CompareFn` type for comparator function.
...
Changed return type of comparator function from `i32` to `std::cmp::Ordering`.
8 years ago
hh9527
51dd656272
Fix compile failed in stable/beta
8 years ago
hh9527
2bace2ca0d
Fix: https://github.com/spacejam/rust-rocksdb/issues/96 ( #1 )
...
* Update ffi_util.rs
* Update rocksdb.rs
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
Alexander Regueiro
7ea617852a
Removed redundant default implementation of `cause` fn for error type.
8 years ago
Alexander Regueiro
ffc541c650
Implemented `std::error::Error` trait for error type.
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
3324574b50
Use Path type for file paths
8 years ago
Karl Hobley
1bc2ac6a09
Reinstate a couple of "pub use"'s
...
These were accidentally removed in
e34692948e
8 years ago