MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / union_all

Method union_all

lib/sqlalchemy/orm/query.py:2205–2216  ·  view source on GitHub ↗

Produce a UNION 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.union_all` - v2 equivalent method.

(self, *q: Query[Any])

Source from the content-addressed store, hash-verified

2203 return self._set_op(expression.union, *q)
2204
2205 def union_all(self, *q: Query[Any]) -> Self:
2206 """Produce a UNION ALL of this Query against one or more queries.
2207
2208 Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See
2209 that method for usage examples.
2210
2211 .. seealso::
2212
2213 :meth:`_sql.Select.union_all` - v2 equivalent method.
2214
2215 """
2216 return self._set_op(expression.union_all, *q)
2217
2218 def intersect(self, *q: Query[Any]) -> Self:
2219 """Produce an INTERSECT of this Query against one or more queries.

Callers 15

_has_table_queryMethod · 0.45
get_table_namesMethod · 0.45
_comment_queryMethod · 0.45
get_view_definitionMethod · 0.45
polymorphic_unionFunction · 0.45
test_unionMethod · 0.45
CoreFixturesClass · 0.45

Calls 1

_set_opMethod · 0.95