EctoGen.Database.DbRoutine (ecto_gen v0.10.1) View Source

Link to this section Summary

Link to this section Types

Specs

t() :: %EctoGen.Database.DbRoutine{
  data_type: term(),
  name: term(),
  row_number: term(),
  schema: term(),
  specific_name: term(),
  type_name: term(),
  type_schema: term()
}

Link to this section Functions

Link to this function

get_routine_function_name(db_routine)

View Source

Specs

get_routine_function_name(t()) :: binary() | iodata()

Returns the name used for function in new generated code. Makes sure each function overload distinguisheable.

Link to this function

get_routine_parser_name(db_routine)

View Source

Specs

get_routine_parser_name(t()) :: iodata()
Link to this function

get_routine_result_item_module_name(routine, module_name)

View Source

Specs

get_routine_result_item_module_name(t(), binary() | iodata()) :: iodata() | nil

Returns fully-qualified module name where function's return struct should be.

Link to this function

get_routine_result_item_struct_name(db_routine)

View Source

Specs

get_routine_result_item_struct_name(t()) :: iodata()
Link to this function

has_complex_return_type?(db_routine)

View Source
Link to this function

has_return_type(routine)

View Source
Link to this function

parse_from_db_row(value)

View Source
Link to this function

to_routine_with_unique_name(routine)

View Source