activity.types

Module Contents

Classes

BoundedIntegerRange

A Range suitable to pass Python numeric types to a PostgreSQL range.

class activity.types.BoundedIntegerRange(lower: int, upper: int, bounds: str = '[)')[source]

Bases: psycopg2.extras.NumericRange

A Range suitable to pass Python numeric types to a PostgreSQL range.

PostgreSQL types :sql:`int4range`, :sql:`int8range`, :sql:`numrange` are casted into !NumericRange instances.

property upper: int[source]

The upper bound of the range. !None if empty or unbound.

property lower: int[source]

The lower bound of the range. !None if empty or unbound.