pagedb 0.1.0-beta.3

Encrypted, portable, embedded page store with B+ tree and segment-file surfaces.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Online compaction: main.db defragmentation and segment repacking.
//!
//! Free-page reclamation itself is handled at runtime by the durable free-list
//! ([`crate::pager::freelist`]); compaction's job is the dense repack + file
//! truncation and segment garbage collection.
//!
//! Entry points: [`compact_now`] (full one-shot) and [`compact_step`]
//! (incremental, budget-bounded) on a [`crate::Db`] handle.

mod full;
mod helpers;
mod repack;
mod step;
mod types;

pub use full::compact_now;
pub use step::compact_step;
pub use types::{CompactBudget, CompactProgress, CompactStats};