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
45
46
47
48
49
50
51
52
53
54
//! # Readatabase (readb) 🗄️
//!
//! `readb` is a high-performance, embedded key-value database engineered in Rust. Designed with a read-first approach,
//! it's optimized for read-heavy workloads and demonstrates superior speed compared to certain databases like `sled` (for benchmarks, refer to the README).
//!
//! ## 🌟 Features
//! - **Swift & Efficient**: Uses smart caching to speed up recurrent reads.
//! - **Modular Design**: Easily switch between various indexing and caching strategies.
//! - **Lock-Free Reads**: Conducts concurrent reads without locks, ensuring optimal throughput.
//! - **Minimalistic**: Few dependencies and a tiny footprint, weighing under 1KB.
//!
//! ## ❗ Characteristics
//! - **Read-Centric**: While write and delete operations are supported, `readb` is optimized for reading.
//! - **Append-Only Strategy**: Adds new data to the end, aiding in its rapid read capabilities.
//! - **Light on Deletion**: `readb` isn't structured around deletes, and unused data remains until garbage collection is triggered.
//!
//! ## 🔧 Core API
//! - `new`: Initialize a new database.
//! - `get`: Fetch the value paired with a particular key.
//! - `link`: Set up an alias between two keys.
//! - `delete`: Eliminate a key from the index; actual data remains untouched.
//! - `persist`: Make certain the recent changes are stored permanently.
//!
//! ## 🌐 `remote-cloning` Feature
//! Upon activating the `remote-cloning` feature:
//! - `clone_from`: Transfers the database from a specified remote source to a local directory.
//! - `address`: The source address.
//! - `path`: The target directory on the local machine.
//! - `compression`: Dictates the compression type during the transfer, defaulting to `None` for no compression.
//!
//! Consult the README for a comprehensive guide, feature details, and performance benchmarks.
pub
pub use IndexType;
pub use *;
pub use IndexTable;
pub use ;