PgRanges.TsRange (PgRanges v1.1.0) View Source

Wraps a Postgrex.Range and casts to a PostgreSQL tsrange type.

Link to this section Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Callback implementation for PgRanges.new/3.

Link to this section Types

Specs

t() :: %PgRanges.TsRange{
  lower: NaiveDateTime.t(),
  lower_inclusive: boolean(),
  upper: NaiveDateTime.t(),
  upper_inclusive: boolean()
}

Link to this section Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Link to this function

new(lower, upper, opts \\ [])

View Source

Specs

new(any(), any(), keyword()) :: t()

Callback implementation for PgRanges.new/3.