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

Method _set_op

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

Source from the content-addressed store, hash-verified

2122 return self
2123
2124 def _set_op(self, expr_fn: Any, *q: Query[Any]) -> Self:
2125 list_of_queries = (self,) + q
2126 return self._from_selectable(expr_fn(*(list_of_queries)).subquery())
2127
2128 def union(self, *q: Query[Any]) -> Self:
2129 """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