View Source mix ecto.gen.repo (Ecto v3.8.1)

Generates a new repository.

The repository will be placed in the lib directory.

examples

Examples

$ mix ecto.gen.repo -r Custom.Repo

This generator will automatically open the config/config.exs after generation if you have ECTO_EDITOR set in your environment variable.

command-line-options

Command line options

  • -r, --repo - the repo to generate