pub fn vacuum_database(db: &mut Database, path: &Path) -> Result<()>Expand description
Reclaims space by rewriting every live B-Tree contiguously from
page 1, with no freelist. Equivalent to save_database but ignores
the existing freelist and per-table preferred pools — every page is
allocated by extending the high-water mark — so the resulting file
is tightly packed and the freelist is empty.
Used by the SQL-level VACUUM; statement.