Elichai Turkel
57b903d769
Added a function to create iterator with specific CF and ReadOptions
6 years ago
Jordan Terrell
b3c10809fe
Implementing AsRef<[u8]> for DBVector...
6 years ago
Oleksandr Anyshchenko
e7f5c24105
Applied clippy lints
6 years ago
Jordan Terrell
df12ddbd57
Adding more documentation to ReadOptions.set_readahead_size [skip ci]...
6 years ago
Jordan Terrell
562f413f4c
Making DB.create_cf generic...
6 years ago
Jordan Terrell
0a8aa1b636
Adding set_readahead_size setter to ReadOptions...
6 years ago
Martin Ek
54cf68d3d0
rustfmt
6 years ago
Martin Ek
3a069ff4dc
Return a Result from property getters
6 years ago
Xuejie Xiao
a651b19aa5
Code review fixes
6 years ago
Xuejie Xiao
81091a05ba
Ergonomic changes via AsRef
6 years ago
Xuejie Xiao
e19dad0141
Add lifetime to DBPinnableSlice to make sure it cannot outlive DB
6 years ago
Xuejie Xiao
dbd2ca6e4f
Implement PinnableSlice based API
6 years ago
Jordan Terrell
59d54070b9
Formatting recent updates to master branch [skip ci]
6 years ago
Jordan Terrell
48c9e03e07
Using None instead of iter::empty for open_cf function...
6 years ago
Jordan Terrell
ceb5744c51
Implementing review feedback...
6 years ago
Jordan Terrell
896dbc6c61
Applying changes from rustfmt...
6 years ago
Jordan Terrell
d00e03f72a
Using generic types to specify column families when opening database...
6 years ago
Jordan Terrell
21b9a9e98a
Key/value arguments are now generic types that impl AsRef<[u8]>...
6 years ago
Jordan Terrell
4f61f96727
Adding iterator construction methods that accept ReadOptions...
6 years ago
Oleksandr Anyshchenko
deb6001cae
Usage `to_path` func and `get_cf_names` func was removed as redundant
6 years ago
Jordan Terrell
1a2c268274
Moving tests to take advantage of DBPath (ensuring cleanup)...
6 years ago
Jordan Terrell
857efff670
Adding lifetime to DBIterator and DBRawIterator...
6 years ago
Jordan Terrell
248b40b465
Adding lifetime to ColumnFamily...
6 years ago
Martin Ek
33d30d4ca1
Add tests
6 years ago
Martin Ek
369d2ab8a6
column_family -> cf for consistency
6 years ago
Martin Ek
312ad80f98
Add cf getters for properties
6 years ago
Martin Ek
22b34a40cb
Add property_value functions
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
05350ac88c
Added a clear method for WriteBatch
6 years ago
Roman Zeyde
73aa6bfd67
Allow setting options on the DB
...
This should allow changing options (e.g. `disable_auto_compactions`)
without closing and re-opening the database.
6 years ago
Oleksandr Anyshchenko
b7b456954a
Review changes
6 years ago
Jordan Terrell
e565d68852
Fixing rustfmt.toml and applying formatting...
6 years ago
Maxim Molchanov
d4cc0e1d18
remove concurrent access to Sync
6 years ago
Roman Zeyde
d035454d9e
Allow retrieving WriteBatch serialized size
6 years ago
Jordan Terrell
64b99a4f3b
Adding Zstandard compression support...
6 years ago
Oleksandr Anyshchenko
9a7270ef9d
Fixed crash `test_column_family` test on macOS
6 years ago
Oleksandr Anyshchenko
8863012a19
Methods `crate_cf` and `drop_cf` are immutable.
6 years ago
Martin Ek
37470d341c
Add db.full_iterator()
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
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
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
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
Karl Hobley
1c3333636d
Implement RawIterator.seek_for_prev
7 years ago