Niko
|
19fc8e0b68
|
in get_key_value pass value by ref
|
2 years ago |
Niko
|
843291a848
|
adding get_key_value to multi store
|
2 years ago |
Niko
|
84674c20e2
|
implement set_enc_key for builders
|
2 years ago |
Kagami Sascha Rosylight
|
0f3e934f77
|
Follow the default behavior of rustfmt (#224)
|
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
|
b51b5e07a5
|
Prevent potential deadlocks in safe mode environments when opnening dbs
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
2d93f06d39
|
Make easy migrator more reslient against situations where old files don't get deleted
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
d74250b549
|
Make migration methods and error handling less surprising
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
6e04f6a117
|
Add tests
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
99203b05c7
|
Ignore source environment path errors when migrating, as per documentation
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
84b74b7610
|
Handle NO_LOCK when opening environments
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
a634920d46
|
Remove `set_check_if_env_exists` since it's unreliable with LMDB
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
|
cf410ad6de
|
Update old comments with incorrect info in tests
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
ceda0d5091
|
Implement a basic migrator that works across backends
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
|
3c502c4bb4
|
Pre: Iterators shouldn't wrap values in options
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
4 years ago |
Victor Porof
|
ef64a29fc7
|
Fix inconsistent max_dbs behavior between backends
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
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
|
d33e79fcd1
|
Minor clippy warning fixes
|
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>
|
4 years ago |
Victor Porof
|
a5389008b6
|
Don't allocate when creating 'from' and 'dup_of' iterators
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
|
7717f49841
|
Allow safe mode environment managers
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 |
Nan Jiang
|
698ae601de
|
Fix clippy errors (#152)
|
5 years ago |
Victor Porof
|
af7c57d454
|
Format newly added test_txn.rs
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Rick Richardson
|
602b81097e
|
added tests for Readable txns
|
5 years ago |
Myk Melez
|
abd08f409a
|
support architecture-independent database migration (#142)
|
5 years ago |
Myk Melez
|
9b46134e19
|
wrap lmdb-rs transactions in rkv abstraction (#116)
|
5 years ago |
Rick Richardson
|
9c8160f71d
|
remove mut from the *store mutation functions as it is not needed (#107)
|
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 |
Myk Melez
|
7223afed9e
|
cargo fmt
|
5 years ago |
Myk Melez
|
769fbe5756
|
remove u16 and u64 variants of IntegerStore
|
5 years ago |
Myk Melez
|
4053445946
|
add u16/u64 types for integer store keys; add integration test for integer store; make IntegerWriter.abort/commit public
|
5 years ago |
Nan Jiang
|
348bb693cd
|
enable rustfmt
|
6 years ago |
Nan Jiang
|
672936fde2
|
replace the deprecated tempdir crate with tempfile
|
6 years ago |
Myk Melez
|
9f0dfdc8a2
|
make Manager consumable (#21, r=ncalexan)
|
6 years ago |