View Source Exandra.UDT (exandra v0.11.0)

Ecto.ParameterizedType for User-Defined Types (UDTs).

options

Options

  • :type (atom/0) - Required. The UDT.

  • :encoded_fields (list of atom/0) - JSON encoded fields.

examples

Examples

For example, if you have defined an email UDT in your database, you can use it in your schema like this:

schema "users" do
  field :email, Exandra.UDT, type: :email
end

Link to this section Summary

Link to this section Types