1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! ## lkv
//!
//! A lightweight and fast embedded key-value store for Rust.
//!
//! For more details, see the [crates.io](https://crates.io/crates/lkv).
//!
//! ## Examples
//!
//! ```no_run
//! use lkv::{Database, Result};
//!
//! fn main() -> Result<()> {
//! let mut db = Database::create("./example.lkv")?;
//! let mut write = db.begin_write()?;
//! write.put("name", "lkv")?;
//! write.commit()?;
//!
//! let read = db.begin_read()?;
//! assert_eq!(read.get("name")?, Some(b"lkv".as_slice()));
//! for item in read.iter()? {
//! let (key, value) = item?;
//! println!("{} = {}",
//! String::from_utf8_lossy(key),
//! String::from_utf8_lossy(value));
//! }
//! drop(read);
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use ;