activity.types
Classes
A Range suitable to pass Python numeric types to a PostgreSQL range. |
Module Contents
- 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.