shortcode v0.4.0 Shortcode.Ecto.ID

Link to this section Summary

Link to this section Functions

Link to this function

cast(integer, params)

Specs

cast(binary(), map()) :: {:ok, binary()}

Callback implementation for Ecto.ParameterizedType.cast/2.

Link to this function

dump(integer, _, _)

Specs

dump(binary() | non_neg_integer() | nil, function(), any()) ::
  {:ok, integer() | nil}

Callback implementation for Ecto.ParameterizedType.dump/3.

Callback implementation for Ecto.ParameterizedType.embed_as/2.

Link to this function

equal?(term1, term2, params)

Callback implementation for Ecto.ParameterizedType.equal?/3.

Specs

init(keyword()) :: map()

Callback implementation for Ecto.ParameterizedType.init/1.

Link to this function

load(integer, _, params)

Specs

load(integer(), function(), map()) :: {:ok, binary() | nil}

Callback implementation for Ecto.ParameterizedType.load/3.

Specs

type(any()) :: :id

Callback implementation for Ecto.ParameterizedType.type/1.