Helper.Ecto.Module (helper v1.0.1) View Source

Build the schema module based on the DSL input

Link to this section Summary

Functions

Define the module based on the initialized values

Initialize the schema structure with the DSL input

Link to this section Types

Specs

ast() :: Macro.output() | nil

Specs

env() :: Macro.Env.t() | nil

Specs

name() :: module() | ast() | nil

Specs

source() :: :embedded | binary() | nil

Specs

t() :: %Helper.Ecto.Module{
  block: Helper.Ecto.Module.Block.t(),
  env: env(),
  fields: list(),
  name: name(),
  repo: term(),
  source: source(),
  utility: Helper.Ecto.Module.Util.t()
}

Specs

utility() :: Util.t() | nil

Link to this section Functions

Specs

define_module(t()) :: :ok | no_return()

Define the module based on the initialized values

Specs

init(env(), keyword() | ast()) :: t()

Initialize the schema structure with the DSL input