Ecto v3.1.4 Mix.Ecto View Source
Conveniences for writing Ecto related Mix tasks.
Link to this section Summary
Functions
Returns true
if module implements behaviour.
Ensures the given module is an Ecto.Repo.
Gets a path relative to the application path.
Asks if the user wants to open a file based on ECTO_EDITOR.
Parses the repository option from the given command line args list.
Link to this section Functions
Link to this function
ensure_implements(module, behaviour, message) View Source
Returns true
if module implements behaviour.
Link to this function
ensure_repo(repo, args)
View Source
ensure_repo(repo, args)
View Source
ensure_repo(module(), list()) :: Ecto.Repo.t()
ensure_repo(module(), list()) :: Ecto.Repo.t()
Ensures the given module is an Ecto.Repo.
Link to this function
no_umbrella!(task) View Source
Gets a path relative to the application path.
Raises on umbrella application.
Link to this function
open?(file) View Source
Asks if the user wants to open a file based on ECTO_EDITOR.
Link to this function
parse_repo(args)
View Source
parse_repo(args)
View Source
parse_repo([term()]) :: [Ecto.Repo.t()]
parse_repo([term()]) :: [Ecto.Repo.t()]
Parses the repository option from the given command line args list.
If no repo option is given, it is retrieved from the application environment.