View Source ReflectOS.Kernel.Ecto.Module (reflect_os_kernel v0.10.1)

Custom Type to support storing atom module names in an Ecto.Changeset.

You can use this to persist atoms in your module configuration, which is particularly useful if you have multiple providers for a given service used to retrieve information for your section.

For example:

defmodule MyWeatherSection do
  use ReflectOS.Kernel.Section

  embedded_schema do
    field :weather_service_module, Ecto.Module
  end
end

Implements behavior Ecto.Type.

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.

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.