API Reference ecto_gen v0.8.0

Modules

This tool is for Postgres database. It is designed for database-first approach. When executed, it generates DbContext module with configured module prefix with elixir functions that call db stored procedures. The generated code even contains parsing mechanism that generates structs for each "complex" type returned from db functions. It even supports procedures (with no return type), functions returning simple types (int, text etc.). Generated code has no runtime overhead - the code purely uses Ecto repo.

This module contains functions for convenient writing of generated elixir modules

Mix Tasks

This task starts the whole machinery to introspect specfied PostgreSQL database and create function calls for found stored procedures.