View Source Interval.Support.Postgrex (Interval v0.3.0)

Conversion helpers for converting Postgrex.Range.t/0 to and from an Interval.t/0

example

Example

interval = Interval.Support.Postgrex.from_range(my_int4range, Interval.Integer)

Link to this section Summary

Link to this section Functions

Link to this function

from_range(range, module)

View Source

Convert a Postgrex.Range to a struct of type module

Link to this function

to_range(interval, module \\ nil)

View Source

Convert an Interval struct to a Postgrex.Range.