MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / selectables_overlap

Function selectables_overlap

lib/sqlalchemy/sql/util.py:526–531  ·  view source on GitHub ↗

Return True if left/right have some overlapping selectable

(left: FromClause, right: FromClause)

Source from the content-addressed store, hash-verified

524
525
526def selectables_overlap(left: FromClause, right: FromClause) -> bool:
527 """Return True if left/right have some overlapping selectable"""
528
529 return bool(
530 set(surface_selectables(left)).intersection(surface_selectables(right))
531 )
532
533
534def bind_values(clause):

Callers 1

_tables_overlapMethod · 0.85

Calls 2

surface_selectablesFunction · 0.85
intersectionMethod · 0.45

Tested by

no test coverage detected