Interval.Support.EctoType (Interval v2.0.1)

View Source

Implements support for auto-implementing Ecto.Type.

Example

use Interval.Support.EctoType, ecto_type: :numrange

Summary

Functions

cast(struct, module)

dump(interval, module)

from_postgrex_range(range, module)

load(range, module)

supported?()

@spec supported?() :: true

Returns if Interval was compiled with support for Ecto.Type

to_postgrex_range(interval, module \\ nil)