ecto_generator v3.0.0 Mix.Tasks.Ecto.Dump.Schema

Dump models from repos

The repository must be set under :ecto_repos in the current app configuration or given via the -r option.

Examples

mix ecto.dump.models

Command line options

  • -r, --repo - the repo to create

Summary

Functions

Ensures the given module is a repository

Ensures the given repository is started and running

Returns the private repository path relative to the source

Functions

ensure_repo(repo, args)
ensure_repo(module, list) :: Ecto.Repo.t | no_return

Ensures the given module is a repository.

ensure_started(repo, opts)
ensure_started(Ecto.Repo.t, Keyword.t) ::
  {:ok, pid, [atom]} |
  no_return

Ensures the given repository is started and running.

generate_models(driver, repo)
parse_repo(args)
parse_repo([term]) :: [Ecto.Repo.t]
source_repo_priv(repo)

Returns the private repository path relative to the source.