Interval.Support.EctoType (Interval v2.0.0-alpha.1)
View SourceImplements support for auto-implementing Ecto.Type.
Example
use Interval.Support.EctoTypeType, ecto_type: :numrange
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
.
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
.