EctoNetwork v1.2.0 EctoNetwork.INET View Source
Support for using Ecto with :inet fields
Link to this section 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
Returns the underlying schema type for the custom type
Link to this section 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
Returns the underlying schema type for the custom type.
For example, if you want to provide your own date
structures, the type function should return :date
.
Note this function is not required to return Ecto primitive types, the type is only required to be known by the adapter.
Callback implementation for Ecto.Type.type/0
.