Niko
84674c20e2
implement set_enc_key for builders
2 years ago
Niko
9853db7823
adding version function to environment
2 years ago
Kagami Sascha Rosylight
0f3e934f77
Follow the default behavior of rustfmt ( #224 )
2 years ago
Jan-Erik Rediger
a2de8a917d
Address new clippy warnings
2 years ago
Jan-Erik Rediger
dd42887903
Hide all of LMDB behind a feature
2 years ago
Victor Porof
bce037a902
Add a way to discard corrupted databases on load
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
bada6fec6f
Make migration easier for consumers
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
0fd756d5d9
Add ability to list all created dbs
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
42c5c2c1b1
Remove leftover/unused `OtherError`
4 years ago
Victor Porof
71de0e836d
Graciously handle backends with no need for resizing, instead of panicking
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
a8cef4ee1a
Allow creating dirs if they don't exist
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
9fe69b11ce
Update crate documentation, more consistent formatting
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
4 years ago
Victor Porof
c433e63551
Move tests to the `tests` directory to allow vendoring into m-c
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
dd360eeb69
Expose common backend errors as top-level store errors; this allows users not to worry about which backend they're using
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
4cdfba6754
Rename `DatabaseInvalid` to `FileInvalid` to avoid confusion with `DatabaseCorrupted`
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
5a00929742
Opening should fail when read transactions exist for `open` and `create` operations
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
c8fac3bb43
Rename confusingly or inappropriately named lifetimes
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
607700872d
Optimize for non-int and non-dup-sort types of databases using features
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
d959e7d3ff
Add tests verifying that deletion also fails with a top-level store error
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
5517b283a9
Ensure that backends interop with each other in expected ways
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
fca4a8d9ea
Ensure that backends fail with a store error when attempting to open invalid databases
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
719b5a57fe
Add more tests
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
4bbe883d29
Prevent opening databases while read transactions are open (match LMDB)
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
bdb02af9b6
Rename `Rkv::from_env` to `Rkv::from_builder` to better reflect what this method expects for params
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
c81ae4b97b
Derive eq and copy traits on single/multi database helpers
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
2bb1436375
Drop copy and clone traits requirement on backend databases
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
a4d76eb250
Generalize LMDB usage and add support for multiple backing stores
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Victor Porof
8b51df1952
Pre: split key types into separate module
...
Signed-off-by: Victor Porof <victor.porof@gmail.com>
5 years ago
Myk Melez
44b1596fea
Add test exceeding LMDB's key size limit ( #150 )
5 years ago
Nan Jiang
d9d4abc383
review fixes
5 years ago
Nan Jiang
d254850342
Consider freelist when calculating load ratio
5 years ago
Nan Jiang
baac37c9aa
Add set_map_size and info for Rkv
5 years ago
Nan Jiang
798b13e74d
Clippy fixes
5 years ago
Nan Jiang
b4f5f53e9d
Implement clear for stores
5 years ago
Myk Melez
6850c5a8ca
test using a value as a key ( #121 )
5 years ago
Myk Melez
9b46134e19
wrap lmdb-rs transactions in rkv abstraction ( #116 )
5 years ago
Myk Melez
743c5eae2f
correct crate docs ( #114 )
...
* correct crate docs
* remove unnecessary mutability from store var
* correct reference to number of concurrent readers
5 years ago
Nan Jiang
7390e6ff5d
integrate clippy into CI ( #108 )
5 years ago
Rick Richardson
9c8160f71d
remove mut from the *store mutation functions as it is not needed ( #107 )
5 years ago
Andronik Ordian
a9f84809b4
Rkv: expose sync and stat Environment methods ( #106 )
5 years ago
Myk Melez
9ff784c8dd
update lmdb-rkv to latest version 0.11 ( #105 )
...
Updates Iter impls to have `type Item = Result<(&'env [u8], Option<Value<'env>>), StoreError>`
5 years ago
Rick Richardson
a81dfbeb10
Refactor into store-centric API ( #101 )
5 years ago
Nan Jiang
999c145c75
happy new year
5 years ago
Myk Melez
cde2b8256a
update modules to 2018 edition standards in test modules
5 years ago
Rick Richardson
2c6ad411ae
updated modules to conform to 2018 edition standards
5 years ago
Myk Melez
abb311bc4c
fix 'cargo fmt' nits
6 years ago
Nan Jiang
43a8731ff8
Replace all the passed-by-reference with passed-by-value for Store ( #88 )
...
* Replace all the passed-by-reference with passed-by-value for Store
* Remove unnecessary as_ref calls
* Simplify the function signature of iterator
6 years ago
Myk Melez
d0d58ca5f1
make map size tests both use get_larger_than_default_map_size_value() fn
...
This refactors determination of a value larger than the default map size to reduce the risk of tests diverging if the default map size changes in the future.
6 years ago
Myk Melez
1244015681
test exceeding and increasing the map size
6 years ago
Myk Melez
111d329a8d
switch lmdb-rs dependency to mozilla/lmdb-rs fork
6 years ago