Rivet.Utils.Ecto.Atom (rivet_utils v2.0.9)
View SourceCustom Type to support :atom
defmodule Post do
use Ecto.Schema
schema "posts" do
field :atom_field, Ecto.Atomend end
Contributor: Brandon Gillespie
Summary
Functions
Callback implementation for Ecto.Type.cast/1.
Callback implementation for Ecto.Type.dump/1.
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Callback implementation for Ecto.Type.load/1.
Callback implementation for Ecto.Type.type/0.
Types
@type t() :: atom()
Functions
Callback implementation for Ecto.Type.cast/1.
Callback implementation for Ecto.Type.dump/1.
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Callback implementation for Ecto.Type.load/1.
Callback implementation for Ecto.Type.type/0.