summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/interfaces.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-02-28 10:59:41 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-02-28 13:49:09 -0500
commita690ec082451ca0636fb45a0d9773a240ae30373 (patch)
tree427ce67495efa3447dd4326448b4a93158826a0c /lib/sqlalchemy/engine/interfaces.py
parent358a0dcf10c27b3f209ac887be9960eccd588a7d (diff)
downloadsqlalchemy-a690ec082451ca0636fb45a0d9773a240ae30373.tar.gz
Add resolve_fks=False option for reflection
Added new parameters :paramref:`.Table.resolve_fks` and :paramref:`.MetaData.reflect.resolve_fks` which when set to False will disable the automatic reflection of related tables encountered in :class:`.ForeignKey` objects, which can both reduce SQL overhead for omitted tables as well as avoid tables that can't be reflected for database-specific reasons. Two :class:`.Table` objects present in the same :class:`.MetaData` collection can still refer to each other even if the reflection of the two tables occurred separately. Fixes: #4517 Change-Id: I623baed42042a16c5109e4c8af6b2f64d2d00f95
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
-rw-r--r--lib/sqlalchemy/engine/interfaces.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py
index 3142c0c6b..4806e72a5 100644
--- a/lib/sqlalchemy/engine/interfaces.py
+++ b/lib/sqlalchemy/engine/interfaces.py
@@ -197,7 +197,7 @@ class Dialect(object):
pass
def reflecttable(
- self, connection, table, include_columns, exclude_columns
+ self, connection, table, include_columns, exclude_columns, resolve_fks
):
"""Load table description from the database.