MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set_op

Method _set_op

lib/sqlalchemy/orm/query.py:2154–2156  ·  view source on GitHub ↗
(self, expr_fn: Any, *q: Query[Any])

Source from the content-addressed store, hash-verified

2152 return self
2153
2154 def _set_op(self, expr_fn: Any, *q: Query[Any]) -> Self:
2155 list_of_queries = (self,) + q
2156 return self._from_selectable(expr_fn(*(list_of_queries)).subquery())
2157
2158 def union(self, *q: Query[Any]) -> Self:
2159 """Produce a UNION of this Query against one or more queries.

Callers 6

unionMethod · 0.95
union_allMethod · 0.95
intersectMethod · 0.95
intersect_allMethod · 0.95
except_Method · 0.95
except_allMethod · 0.95

Calls 2

_from_selectableMethod · 0.95
subqueryMethod · 0.45

Tested by

no test coverage detected