EctoNetwork.INET (EctoNetwork v1.6.0)

View Source

Support for using Ecto with :inet fields.

Summary

Functions

Handle casting to Postgrex.INET.

Convert from native Ecto representation to a binary.

Convert to the native Ecto representation.

Handle embedding format for CIDR records.

Handle equality testing for CIDR records.

Load from the native Ecto representation.

Callback implementation for Ecto.Type.type/0.

Types

t()

@type t() :: Postgrex.INET.t()

Functions

cast(address)

Handle casting to Postgrex.INET.

decode(inet)

Convert from native Ecto representation to a binary.

dump(inet)

Convert to the native Ecto representation.

embed_as(_)

Handle embedding format for CIDR records.

equal?(left, right)

Handle equality testing for CIDR records.

load(inet)

Load from the native Ecto representation.

type()

Callback implementation for Ecto.Type.type/0.