From: Mike Bayer Date: Sat, 22 Jun 2013 15:48:33 +0000 (-0400) Subject: versionadds X-Git-Tag: rel_0_8_2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bdeab2e4ccb0790882ece3f42ba370211658168;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git versionadds --- diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index f708b286ed..d03f948a70 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -21,6 +21,9 @@ class RangeOperators(object): No extra support is provided for the Range Functions listed in Table 9-45 of the postgres documentation. For these, the normal :func:`~sqlalchemy.sql.expression.func` object should be used. + + .. versionadded:: 0.8.2 Support for Postgresql RANGE operations. + """ class comparator_factory(sqltypes.Concatenable.Comparator): @@ -91,42 +94,66 @@ class RangeOperators(object): return self.expr.op('+')(other) class INT4RANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql INT4RANGE type." + """Represent the Postgresql INT4RANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'INT4RANGE' ischema_names['int4range'] = INT4RANGE class INT8RANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql INT8RANGE type." + """Represent the Postgresql INT8RANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'INT8RANGE' ischema_names['int8range'] = INT8RANGE class NUMRANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql NUMRANGE type." + """Represent the Postgresql NUMRANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'NUMRANGE' ischema_names['numrange'] = NUMRANGE class DATERANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql DATERANGE type." + """Represent the Postgresql DATERANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'DATERANGE' ischema_names['daterange'] = DATERANGE class TSRANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql TSRANGE type." + """Represent the Postgresql TSRANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'TSRANGE' ischema_names['tsrange'] = TSRANGE class TSTZRANGE(RangeOperators, sqltypes.TypeEngine): - "Represent the Postgresql TSTZRANGE type." + """Represent the Postgresql TSTZRANGE type. + + .. versionadded:: 0.8.2 + + """ __visit_name__ = 'TSTZRANGE'