MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / embedded

Method embedded

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

Source from the content-addressed store, hash-verified

1495 del pi[col]
1496
1497 def embedded(
1498 self,
1499 target_set: Union[
1500 Set[ColumnElement[Any]], FrozenSet[ColumnElement[Any]]
1501 ],
1502 ) -> bool:
1503 expanded_proxy_set = self.column._expanded_proxy_set
1504 for t in target_set.difference(expanded_proxy_set):
1505 if not expanded_proxy_set.intersection(_expand_cloned([t])):
1506 return False
1507 return True
1508
1509
1510class 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