View Source Exandra.Inet (exandra v0.11.0)

Ecto.Type for inets.

examples

Examples

schema "devices" do
  field :last_ip, Exandra.Inet
end

Link to this section Summary

Types

t()

The type for an Exandra inet.

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Link to this section Types

@type t() :: :inet.ip_address()

The type for an Exandra inet.

Link to this section Functions

Link to this function

embed_as(_)

View Source (since 0.11.0)

Callback implementation for Ecto.Type.embed_as/1.

Link to this function

equal?(term1, term2)

View Source (since 0.11.0)

Callback implementation for Ecto.Type.equal?/2.