httk.store.db.fsck¶
Integrity repair and dependency collection for SQL permanentization stores.
Classes¶
Counters for one physical record, child, or dispatch table. |
|
Immutable SQL fsck report, modeled after Mongo's public summary. |
Functions¶
|
Repair dispatches, sweep incomplete residue, and report logical dangling references. |
Module Contents¶
- class httk.store.db.fsck.FsckTableSummary[source]¶
Counters for one physical record, child, or dispatch table.
- class httk.store.db.fsck.FsckSummary[source]¶
Immutable SQL fsck report, modeled after Mongo’s public summary.
- httk.store.db.fsck.run_fsck(store, *, repair=True, collect_garbage=True, repair_conflicts=False, known_types=(), exclusive=False)[source]¶
Repair dispatches, sweep incomplete residue, and report logical dangling references.
DuckDB does not serialize a read-then-delete fsck against concurrent writers. Callers must therefore pass
exclusive=Truethere, explicitly acknowledging that they have taken the database offline from all writers. SQLite transactional stores instead issueBEGIN IMMEDIATEthemselves.