Health checks for Threadline infrastructure.
Queries the PostgreSQL system catalog to verify trigger installation status for all user tables.
Summary
Functions
Returns a list of tagged tuples indicating trigger coverage for all user
tables in the public schema.
Functions
Returns a list of tagged tuples indicating trigger coverage for all user
tables in the public schema.
Audit tables (audit_transactions, audit_changes, audit_actions) are
excluded from the result — they are not expected to have triggers (CAP-10).
Returns [{:covered, table_name} | {:uncovered, table_name}].
Options
:repo— requiredEcto.Repomodule
Example
Threadline.Health.trigger_coverage(repo: MyApp.Repo)
#=> [{:covered, "users"}, {:covered, "posts"}, {:uncovered, "orders"}]