EctoCockroachExtras.DiagnoseLogic (ecto_cockroach_extras v0.1.0)

Copy Markdown View Source

Healthcheck report logic backing EctoCockroachExtras.diagnose/2.

Summary

Functions

Runs all checks and returns a %{columns:, rows:} map in the same shape as a %Postgrex.Result{}, ready to be handed to EctoCockroachExtras.format/3.

Functions

run(repo, opts \\ [])

Runs all checks and returns a %{columns:, rows:} map in the same shape as a %Postgrex.Result{}, ready to be handed to EctoCockroachExtras.format/3.

Accepts opts[:tables] - a list of table name strings to check for stale statistics. Without it, that particular check is reported as skipped.