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])
| 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. |