Current section

Files

Jump to
avro_ex lib avro_ex term.ex
Raw

lib/avro_ex/term.ex

defmodule AvroEx.Term do
@moduledoc "An Ecto type for Avro terms"
use Ecto.Type
@spec cast(any()) :: {:ok, any()}
def cast(type), do: {:ok, type}
@spec load(any()) :: {:ok, any()}
def load(data), do: {:ok, data}
@spec dump(any()) :: {:ok, any()}
def dump(data), do: {:ok, data}
@spec type() :: :term
def type, do: :term
end