Current section

Files

Jump to
ecto_gen lib mix tasks generate.ex
Raw

lib/mix/tasks/generate.ex

defmodule Mix.Tasks.Eg.Gen do
use Mix.Task
@moduledoc """
This task starts the whole machinery to introspect specfied PostgreSQL database
and create function calls for found stored procedures.
"""
require Logger
def run(_) do
Logger.info("Running generate task")
Application.ensure_all_started(:postgrex)
EctoGen.start()
end
end