Skip to content

Protocol

PostgresRangeDecodable

A type that can be decoded into a Swift RangeExpression type from a Postgres range where it is the bound type.
protocol PostgresRangeDecodable : PostgresDecodable

Topics

Instance Methods

  • func upperBoundExclusiveToUpperBoundInclusive() throws -> Self
    If a Postgres range type has a well-defined step, Postgres automatically converts it to a canonical form. Types such as int4range get converted to upper-bound-exclusive. This method is needed when converting an upper bound to inclusive. It should throw if the type lacks a well-defined step.

Type Properties

Relationships

Inherits From

Inherited By

Conforming Types

See Also

Decoding