From: AlonM Date: Sat, 14 Nov 2020 17:13:21 +0000 (+0200) Subject: Add docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8613e100792fc0bb3cf300ec6aebc78ecdf0361;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add docs --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 0ba3d0a638..655a31d115 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -781,6 +781,8 @@ using the ``postgresql_where`` keyword argument:: Index('my_index', my_table.c.id, postgresql_where=my_table.c.value > 10) +.. _postgresql_operator_classes: + Operator Classes ^^^^^^^^^^^^^^^^ diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index d2c6e81a32..fce4a2559c 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -171,6 +171,11 @@ class ExcludeConstraint(ColumnCollectionConstraint): If set, emit WHERE when issuing DDL for this constraint. + :param ops: + Optional dictionary. Used to define operator classes for the + elements. + See :ref:`_postgresql_operator_classes` + """ columns = [] render_exprs = []