MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / embedded

Method embedded

lib/sqlalchemy/sql/base.py:1764–1774  ·  view source on GitHub ↗
(
        self,
        target_set: Union[
            Set[ColumnElement[Any]], FrozenSet[ColumnElement[Any]]
        ],
    )

Source from the content-addressed store, hash-verified

1762 del pi[col]
1763
1764 def embedded(
1765 self,
1766 target_set: Union[
1767 Set[ColumnElement[Any]], FrozenSet[ColumnElement[Any]]
1768 ],
1769 ) -> bool:
1770 expanded_proxy_set = self.column._expanded_proxy_set
1771 for t in target_set.difference(expanded_proxy_set):
1772 if not expanded_proxy_set.intersection(_expand_cloned([t])):
1773 return False
1774 return True
1775
1776
1777class ColumnCollection(Generic[_COLKEY, _COL_co]):

Callers 1

corresponding_columnMethod · 0.80

Calls 3

_expand_clonedFunction · 0.85
differenceMethod · 0.45
intersectionMethod · 0.45

Tested by

no test coverage detected