View Source PgRanges.DateRange (PgRanges v1.1.1)

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

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

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

Callback implementation for PgRanges.new/3.

Types

@type t() :: %PgRanges.DateRange{
  lower: Date.t(),
  lower_inclusive: integer(),
  upper: Date.t(),
  upper_inclusive: integer()
}

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
@spec new(any(), any(), keyword()) :: t()

Callback implementation for PgRanges.new/3.