View Source Interval.Support.EctoType (Interval v0.3.4)
Implements support for auto-implementing Ecto.Type.
example
Example
use Interval.Support.EctoTypeType, ecto_type: :numrange
Link to this section Summary
Functions
Convert a Postgrex.Range
to a struct of type module
Returns if Interval was compiled with support for Ecto.Type
Convert an Interval
struct to a Postgrex.Range
.
Link to this section Functions
Convert a Postgrex.Range
to a struct of type module
@spec supported?() :: true
Returns if Interval was compiled with support for Ecto.Type
Convert an Interval
struct to a Postgrex.Range
.