shorterdb/
lib.rs

1//! # ShorterDB
2//!
3//! A lightweight embedded key-value store built with SkipLists and LSM architecture.
4//!
5//! ## Example
6//!
7//! ```rust,no_run
8//! use shorterdb::ShorterDB;
9//! use std::path::Path;
10//!
11//! let mut db = ShorterDB::new(Path::new("./my_db")).unwrap();
12//! db.set(b"key", b"value").unwrap();
13//! let value = db.get(b"key").unwrap();
14//! assert_eq!(value, Some(b"value".to_vec()));
15//! ```
16
17pub mod errors;
18pub mod kv;
19
20pub use errors::{Result, ShortDBErrors};
21pub use kv::db::ShorterDB;