diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-23 21:03:36 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-23 21:03:36 +0100 |
commit | 5e7c1d0b516c34a6b80c950cb8a814d4d46ea3c3 (patch) | |
tree | b2716a95adc8519ff1a99a50e8a193715e8dd252 /lib/extras.py | |
parent | abe2df5f57ac2643ef94d1013b889cb8e3cfbea2 (diff) | |
download | psycopg2-5e7c1d0b516c34a6b80c950cb8a814d4d46ea3c3.tar.gz |
Added first implementation of Range type, adapter, typecaster
Diffstat (limited to 'lib/extras.py')
-rw-r--r-- | lib/extras.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/extras.py b/lib/extras.py index 696a9af..b6766d8 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -967,4 +967,11 @@ def register_composite(name, conn_or_curs, globally=False): return caster +# Expose range-related objects +from psycopg2._range import Range, NumberRange +from psycopg2._range import Int4Range, Int8Range, DecimalRange +from psycopg2._range import DateRange, DateTimeRange, DateTimeTZRange +from psycopg2._range import register_range, RangeAdapter, RangeCaster + + __all__ = filter(lambda k: not k.startswith('_'), locals().keys()) |