Checks configuration, database state and web integration without changing them.
examine/1 checks the configured repo, database adapter, schemas, tables, indexes, session
validity, ceremony routes and handler callbacks. Database and application processes must
be available for the corresponding checks to run.
The doctor reuses configuration validation and catalogue queries from the integration itself.
mix ithibati.doctor starts the consuming application and prints these findings.
See Setup checks for common failures and fixes.
Summary
Functions
Returns an ordered list of {subject, {status, detail}} findings for the application.
Checks whether a table's referenced account key matches Ithibati's foreign-key requirements.
Functions
Returns an ordered list of {subject, {status, detail}} findings for the application.
app is the consuming OTP application's name. It is used to discover web integration modules.
Other checks read the configured repo and schemas.
A status is :ok, :error or :skip. Checks whose prerequisites are unavailable are skipped;
for example, an unreachable repo prevents database-table checks.
This function neither starts the application nor changes its configuration or database. The Mix task starts the application before calling it.
Checks whether a table's referenced account key matches Ithibati's foreign-key requirements.
Returns {:ok, description} or {:error, description}. Checks the column type against
users_key_type and requires a unique index on that column alone. The repo's
:migration_foreign_key option chooses the column, defaulting to :id.
prefix is a PostgreSQL schema prefix or nil. Queries the supplied repo without modifying it.