From f8613e100792fc0bb3cf300ec6aebc78ecdf0361 Mon Sep 17 00:00:00 2001 From: AlonM Date: Sat, 14 Nov 2020 19:13:21 +0200 Subject: [PATCH] Add docs --- lib/sqlalchemy/dialects/postgresql/base.py | 2 ++ lib/sqlalchemy/dialects/postgresql/ext.py | 5 +++++ 2 files changed, 7 insertions(+) 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 = [] -- 2.47.3