MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / intersect_all

Method intersect_all

lib/sqlalchemy/orm/query.py:2231–2242  ·  view source on GitHub ↗

Produce an INTERSECT ALL of this Query against one or more queries. Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See that method for usage examples. .. seealso:: :meth:`_sql.Select.intersect_all` - v2 equivalent method.

(self, *q: Query[Any])

Source from the content-addressed store, hash-verified

2229 return self._set_op(expression.intersect, *q)
2230
2231 def intersect_all(self, *q: Query[Any]) -> Self:
2232 """Produce an INTERSECT ALL of this Query against one or more queries.
2233
2234 Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See
2235 that method for usage examples.
2236
2237 .. seealso::
2238
2239 :meth:`_sql.Select.intersect_all` - v2 equivalent method.
2240
2241 """
2242 return self._set_op(expression.intersect_all, *q)
2243
2244 def except_(self, *q: Query[Any]) -> Self:
2245 """Produce an EXCEPT of this Query against one or more queries.

Callers 1

Calls 1

_set_opMethod · 0.95

Tested by

no test coverage detected