Range
Represents a generic, user-friendly PostgreSQL range. This class is designed to be used in application code, mapping directly to/from io.github.octaviusframework.driver.container.PgRange.
The defaults produce PostgreSQL's own [) convention: lower inclusive, upper exclusive, and a bound left null treated as unbounded rather than as a NULL value.
Note that ranges over a discrete subtype - int4range, int8range, daterange - are rewritten by the server into the canonical [) form, so what comes back describes the same span with different bounds than what went out: (1,5] is stored and read back as [2,6). Comparing a returned range field-by-field against the one you sent will not match. Continuous types (numrange, tsrange, tstzrange) have no canonical form and are stored as written.
Type Parameters
The type of the range bounds (e.g., Int, LocalDate, or a data class).
Constructors
Properties
The class of the bounds, needed to resolve the PostgreSQL range type.
Whether the range contains nothing at all; use Range.empty to build one.
Whether the lower bound is part of the range.
Whether the range is unbounded below.
Whether the lower bound is present but NULL, as distinct from unbounded.
Whether the upper bound is part of the range.
Whether the range is unbounded above.
Whether the upper bound is present but NULL, as distinct from unbounded.
The lower bound value, or null for none.
The upper bound value, or null for none.