EctoGen.EEx.Helpers (ecto_gen v0.10.4) View Source

This module contains functions for convenient writing of generated elixir modules

Link to this section Summary

Link to this section Functions

Link to this function

generate_function_spec(routine, input_params, module_name)

View Source

Specs

Link to this function

generate_params_list(routine_params, with_default \\ false)

View Source

Specs

generate_params_list([EctoGen.Database.DbRoutineParameter.t()], boolean()) ::
  iodata()
Link to this function

generate_sql_params(routine_params)

View Source

Specs

generate_sql_params(list()) :: iodata()
Link to this function

generate_sql_query_params_assignments(routine_params)

View Source

Specs

generate_sql_query_params_assignments([EctoGen.Database.DbRoutineParameter.t()]) ::
  iodata()
Link to this function

get_function_return_type_spec(routine, module_name)

View Source

Specs

get_function_return_type_spec(
  EctoGen.Database.DbRoutine.t(),
  binary() | iodata()
) :: iodata()
Link to this function

get_routine_parse_function_name(function_name, per_row \\ false)

View Source
Link to this function

get_routine_parser_module_name(module_name, function_name)

View Source

Specs

get_routine_parser_module_name(binary() | iodata(), binary() | iodata()) ::
  iodata()
Link to this function

simple_return_type_param_name()

View Source
Link to this function

sort_function_params_by_postion(routine_params)

View Source
Link to this function

trim_routine_params_names(routine_params)

View Source

Removes underscores from param names

Link to this function

value_not_provided_token()

View Source

Specs

value_not_provided_token() :: binary()