diff options
author | Sumit Khanna <ksumeet40@gmail.com> | 2021-10-04 11:14:38 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-10-14 14:10:15 -0400 |
commit | 7f25fcadafe1b227c27b223696ce3bcc88e47ec7 (patch) | |
tree | 767a99e43857787b12a0e7e56e13cc2e081c70dc /lib/sqlalchemy/testing/requirements.py | |
parent | de9db9940fbcf32ccd93169d2ed6aa874869b84d (diff) | |
download | sqlalchemy-7f25fcadafe1b227c27b223696ce3bcc88e47ec7.tar.gz |
Reflect table can reflect table with no columns
The :meth:`_engine.Inspector.reflect_table` method now supports reflecting
tables that do not have user defined columns. This allows
:meth:`_schema.MetaData.reflect` to properly complete reflection on
databases that contain such tables. Currently, only PostgreSQL is known
to support such a construct among the common database backends.
Fixes: #3247
Closes: #7118
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7118
Pull-request-sha: cb8ce01957e9a1453290a7c2728af8c60ef55fa1
Change-Id: I906cebe17d13554d79086b92f3e1e51ffba3e818
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index a546e1feb..f8b5dd606 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -589,9 +589,17 @@ class SuiteRequirements(Requirements): @property def table_reflection(self): + """target database has general support for table reflection""" return exclusions.open() @property + def reflect_tables_no_columns(self): + """target database supports creation and reflection of tables with no + columns, or at least tables that seem to have no columns.""" + + return exclusions.closed() + + @property def comment_reflection(self): return exclusions.closed() |