mmtkvdb
is a crate for Rust which provides a memory-mapped key-value
database. It uses LMDB and links with an existing liblmdb
on the system.
Because of how memory-mapped I/O is being used and also because of certain
assumptions of the underlying LMDB API, opening environments and databases
requires unsafe
Rust (i.e. the programmer must ensure that certain
preconditions are met that cannot be enforced by the compiler to avoid
undefined behavior). If you aim to program in safe Rust only, this Rust
library is not suitable for you.
For documentation on how to use this crate, refer to the example in
src/lib.rs
.
See contained LICENSE
file (MIT License).
StorableRef
instead of references to Storable
in more places
StorableRef
instead of reference to Storable
as key
to method Txn::get_owned
(which was already allowed for Txn::get
)StorableRef
for tuples (e.g.
(&i32, &String)
in addition to (&i32, &str)
), which enhances
usability in some casesStorable
for certain smart pointers such
as Vec<u8>
and String
BorrowStorable
and StorableRef
which handle storing
tuples in a more efficient way (without unnecessary cloning/copying)storable
X
to T
for generic structs
in owning_pointer
For older changes, refer to the CHANGELOG.md
file.