shortcode v0.2.0 Shortcode.Ecto.ID

Link to this section Summary

Link to this section Functions

Link to this function

cast(integer, _)

Specs

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

Callback implementation for Ecto.ParameterizedType.cast/2.

Link to this function

dump(value, dumper, params)

Specs

dump(any(), any(), map()) :: {:ok, integer()} | :error

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(), any(), map()) :: {:ok, binary()}

Callback implementation for Ecto.ParameterizedType.load/3.

Specs

type(any()) :: :id

Callback implementation for Ecto.ParameterizedType.type/1.