Threadline.Health (Threadline v0.2.0)

Copy Markdown View Source

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

trigger_coverage(opts)

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

Example

Threadline.Health.trigger_coverage(repo: MyApp.Repo)
#=> [{:covered, "users"}, {:covered, "posts"}, {:uncovered, "orders"}]