# Ecto Doctor v0.0.1 - API Reference

## Modules

- Schema checks
  - [EctoDoctor](EctoDoctor.md): Finds where your Ecto schemas and changesets disagree with your database.
  - [EctoDoctor.Error](EctoDoctor.Error.md): Explains why Ecto Doctor can't run when a function returns it or raises it.
  - [EctoDoctor.Finding](EctoDoctor.Finding.md): Describes one problem a check found.

- N+1 queries
  - [EctoDoctor.Plug](EctoDoctor.Plug.md): Lists the page's N+1 queries in a footer and in the browser console while you develop.
  - [EctoDoctor.RepeatedQueries](EctoDoctor.RepeatedQueries.md): Catches N+1 queries while your tests run and while you use the app in dev.
  - [EctoDoctor.RepeatedQueries.Assertions](EctoDoctor.RepeatedQueries.Assertions.md): Checks one block of code for N+1 queries inside an ExUnit test.
  - [EctoDoctor.RepeatedQueries.Error](EctoDoctor.RepeatedQueries.Error.md): Fails a test at its end when it ran a new N+1 query.
  - [EctoDoctor.RepeatedQueries.Finding](EctoDoctor.RepeatedQueries.Finding.md): Describes one N+1 query.
The same query ran `count` times from the same call stack in one unit of work.

## Mix Tasks

- [mix ecto.doctor](Mix.Tasks.Ecto.Doctor.md): Checks your Ecto schemas and changesets against the live database.
- [mix ecto.doctor.baseline](Mix.Tasks.Ecto.Doctor.Baseline.md): Writes every current finding to the baseline file so `mix ecto.doctor` reports only new ones.
- [mix ecto.doctor.explain](Mix.Tasks.Ecto.Doctor.Explain.md): Describes one check or lists them all.
- [mix ecto_doctor.install](Mix.Tasks.EctoDoctor.Install.md): Sets Ecto Doctor up in your app.

