summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/extras.py b/lib/extras.py
index fe8db0a..eed8b32 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -952,5 +952,12 @@ def register_composite(name, conn_or_curs, globally=False, factory=None):
# expose the json adaptation stuff into the module
from psycopg2._json import json, Json, register_json, register_default_json
+
+# Expose range-related objects
+from psycopg2._range import Range, NumericRange
+from psycopg2._range import DateRange, DateTimeRange, DateTimeTZRange
+from psycopg2._range import register_range, RangeAdapter, RangeCaster
+
+
__all__ = filter(lambda k: not k.startswith('_'), locals().keys())