diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2022-07-02 23:49:07 +0200 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2022-07-28 19:27:23 +0200 |
| commit | 68a3374d5aae83b75b943b186802a6975e6b46fb (patch) | |
| tree | 450911f6ccd057562ed7656406161db4a4a9b816 /lib/sqlalchemy/testing/requirements.py | |
| parent | 2ab519f59cf81307966dba3d5b8a176d45deb297 (diff) | |
| download | sqlalchemy-68a3374d5aae83b75b943b186802a6975e6b46fb.tar.gz | |
Reflect expression-based indexes on PostgreSQL
The PostgreSQL dialect now supports reflection of expression based indexes.
The reflection is supported both when using
:meth:`_engine.Inspector.get_indexes` and when reflecting a
:class:`_schema.Table` using :paramref:`_schema.Table.autoload_with`.
Thanks to immerrr and Aidan Kane for the help on this ticket.
Fixes: #7442
Change-Id: I3e36d557235286c0f7f6d8276272ff9225058d48
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index cb955ff3d..55b10bdd5 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -736,6 +736,12 @@ class SuiteRequirements(Requirements): return exclusions.closed() @property + def reflect_indexes_with_expressions(self): + """target database supports reflection of indexes with + SQL expressions.""" + return exclusions.closed() + + @property def unique_constraint_reflection(self): """target dialect supports reflection of unique constraints""" return exclusions.open() |
