PgRanges.NumRange (PgRanges v1.1.0) View Source
Wraps a Postgrex.Range and casts to a PostgreSQL numrange type.
Link to this section Summary
Functions
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Creates a new Elixir.PgRanges.NumRange struct. It expects the lower and upper
attributes to be acceptable by Decimal.new/1.
Link to this section Types
Specs
Link to this section Functions
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Specs
Creates a new Elixir.PgRanges.NumRange struct. It expects the lower and upper
attributes to be acceptable by Decimal.new/1.
This will convert tany acceptable input to Decimal.
Options
lower_inclusive: should the range be lower inclusive? Default istrueupper_inclusive: should the range be upper inclusive? Default isfalse