EctoGen.Database.DbRoutineParameter (ecto_gen v0.10.3) View Source

Link to this section Summary

Functions

Returns binary containing spec representation of given udt name

Link to this section Types

Specs

t() :: %EctoGen.Database.DbRoutineParameter{
  mode: term(),
  name: term(),
  original_name: term(),
  parameter_default: term(),
  position: term(),
  udt_name: term()
}

Link to this section Functions

Link to this function

udt_name_to_elixir_term(text)

View Source

Returns binary containing spec representation of given udt name

Examples

iex> udt_name_to_elixir_term("text")
"binary()"
iex> udt_name_to_elixir_term("int")
"integer()"
iex> udt_name_to_elixir_term("timestamp")
"DateTime.t()"
iex> udt_name_to_elixir_term("timestamptz")
"DateTime.t()"