]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect mssql/postgresql filtered/partial indexes
authorRamonWill <ramonwilliams@hotmail.co.uk>
Thu, 20 Aug 2020 19:05:39 +0000 (15:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Sep 2020 14:30:43 +0000 (10:30 -0400)
commit69502725db4829a84872697fd6569631d2a3c47f
treea4035a47bb0def00afa405c8fdfe8215ae3d468e
parent544ef23cd36b0ea30a13c5158121ba5ea7573f03
Reflect mssql/postgresql filtered/partial indexes

Added support for inspection / reflection of partial indexes / filtered
indexes, i.e. those which use the ``mssql_where`` or ``postgresql_where``
parameters, with :class:`_schema.Index`.   The entry is both part of the
dictionary returned by :meth:`.Inspector.get_indexes` as well as part of a
reflected :class:`_schema.Index` construct that was reflected.  Pull
request courtesy Ramon Williams.

**Have a nice day!**
Fixes: #4966
Closes: #5504
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5504
Pull-request-sha: b3018bac987081193b2e65cfdb6aeb7d5d270fcd

Change-Id: Icbb2f93d1545700718ccb5222097185b815f5dbc
doc/build/changelog/unreleased_14/4966.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/mssql/test_compiler.py
test/dialect/mssql/test_reflection.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_reflection.py