RangeBoundary() expressions

New in version 3.0.

class RangeBoundary ( inclusive_lower = True , inclusive_upper = False )

If True (default), the lower bound is inclusive '[' , otherwise it’s exclusive '(' .


If False (default), the upper bound is exclusive ')' , otherwise it’s inclusive ']' .

A RangeBoundary() expression represents the range boundaries.

It can be used with a custom range functions that expected boundaries, for example to define ExclusionConstraint .

See the PostgreSQL documentation for the full details .