View Source Ecto.Druid.ComplexType (ecto_druid v0.4.0)

Can be used to define a default implementation for a Druid complex type that implements the Ecto.Type behavior. Any Ecto.Type behavior can be overridden by defining the corresponding function in the module that uses this macro.

Example

defmodule MyType do
  use Ecto.Druid.ComplexType
end