v0.165.0
 1"""Database health checks.
 2
 3Public surface:
 4- Types: CheckItem, CheckResult, Informational, TableOwner
 5- Entry point: run_all_checks(cursor, table_owners) -> (results, context)
 6- Table ownership: build_table_owners()
 7
 8Internal layout (for maintainers):
 9- types.py             — TypedDicts + Literals
10- ownership.py         — build_table_owners, _table_info
11- context.py           — gather_context (hit ratios, XID age, connections,
12                         pg_stat_statements availability, etc.)
13- helpers.py           — formatting and pg_stat_statements probes
14- checks_structural.py — invalid/duplicate/missing_fk indexes, sequence exhaustion
15- checks_cumulative.py — stats_freshness, vacuum_health, index_bloat,
16                         unused_indexes, missing_index_candidates
17- checks_snapshot.py   — long_running_connections, blocking_queries
18- runner.py            — ALL_CHECKS + cross-check caveats + run_all_checks
19"""
20
21from .ownership import build_table_owners
22from .runner import run_all_checks
23from .types import CheckItem, CheckResult, Informational, TableOwner
24
25__all__ = [
26    "CheckItem",
27    "CheckResult",
28    "Informational",
29    "TableOwner",
30    "build_table_owners",
31    "run_all_checks",
32]