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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//! EdgeStore — local-first embedded KV + vector database.
//!
//! [`Engine`] is the primary API. It is synchronous and has no runtime dependency.
//! Use it directly in CLI tools, tests, and embedded contexts.
//!
//! For async runtimes, wrap [`Engine`] in `Arc<RwLock<Engine>>` and call your
//! runtime's `spawn_blocking` equivalent. The convenience crate `edgestore-tokio`
//! does exactly this for tokio — it adds no logic beyond that wrapper.
//!
//! HTTP transport lives in `edgestore-repl`.
//!
//! # Public API Surface
//!
//! | Type | Item | Description |
//! |------|------|-------------|
//! | Engine | [`Engine`] | Main KV engine (open, get, put, delete, range, prefix, flush, snapshot, compact) |
//! | Config | [`EdgestoreConfig`] | Database configuration |
//! | Error | [`EdgestoreError`] | All error variants |
//! | Transaction | [`Transaction`] | Multi-record atomic batch |
//! | Metrics | [`MetricsSnapshot`] | Point-in-time metrics snapshot |
//! | Vector | [`VectorEngine`] trait, [`VectorRecord`], [`Dtype`], [`Metric`] | Vector storage & search |
//! | Text | [`TextEngine`] trait, [`TextSearchResult`], [`SearchOptions`] | Full-text search |
//! | Snapshot | [`Snapshot`], [`SnapshotRegistry`] | Point-in-time reads |
//! | Replication | [`ReplicationProtocol`], [`HostId`], [`SegmentRef`] | Pull-only sync |
//! | Storage | [`StorageBackend`], [`DefaultStorageBackend`], [`MemoryStorageBackend`] | Pluggable I/O |
//! | Compaction | [`Compactor`], [`CompactionStats`] | Deathtime-cohort compaction |
//! | Merkle | [`RangeMerkleTree`] | Anti-entropy probe |
//! | Immutable | [`ImmutableEngine`], [`InMemorySegmentReader`] | Read-only in-memory engine for serverless / WASM |
/// Deathtime-cohort compaction engine.
/// Database configuration.
/// Error types.
/// FDP (Flexible Data Placement) storage backends.
/// Read-only in-memory engine for serverless / WASM environments.
/// Range-level Merkle tree for anti-entropy probes.
/// Engine metrics and snapshots.
/// Remote segment store abstraction.
/// Pull-only replication protocol.
/// Point-in-time snapshot reads.
/// Pluggable storage backend trait.
/// Core types (Lsn, SegmentMeta, Compression, etc.).
/// Main KV engine.
/// Segment manifest (internal).
/// In-memory table trait and BTree implementation.
/// WAL replay recovery (internal).
/// Segment format, reader, writer, and store (internal).
/// Multi-record transaction batch.
/// Vector storage, distance, and search (internal modules with public re-exports).
/// Write-ahead log format and I/O (internal).
pub use ;
pub use EdgestoreConfig;
pub use ;
pub use EdgestoreError;
pub use ;
pub use ImmutableEngine;
pub use RangeMerkleTree;
pub use MetricsSnapshot;
pub use RemoteStore;
pub use ;
pub use InMemorySegmentReader;
pub use ;
pub use ;
pub use Transaction;
pub use ;
pub use ;
pub use HnswIndex;
pub use ;
pub use ;