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

Method union_all

lib/sqlalchemy/sql/selectable.py:6657–6674  ·  view source on GitHub ↗

r"""Return a SQL ``UNION ALL`` of this select() construct against the given selectables provided as positional arguments. :param \*other: one or more elements with which to create a UNION. .. versionchanged:: 1.4.28 multiple elements are now accepted.

(
        self, *other: _SelectStatementForCompoundArgument[_TP]
    )

Source from the content-addressed store, hash-verified

6655 return CompoundSelect._create_union(self, *other)
6656
6657 def union_all(
6658 self, *other: _SelectStatementForCompoundArgument[_TP]
6659 ) -> CompoundSelect[_TP]:
6660 r"""Return a SQL ``UNION ALL`` of this select() construct against
6661 the given selectables provided as positional arguments.
6662
6663 :param \*other: one or more elements with which to create a
6664 UNION.
6665
6666 .. versionchanged:: 1.4.28
6667
6668 multiple elements are now accepted.
6669
6670 :param \**kwargs: keyword arguments are forwarded to the constructor
6671 for the newly created :class:`_sql.CompoundSelect` object.
6672
6673 """
6674 return CompoundSelect._create_union_all(self, *other)
6675
6676 def except_(
6677 self, *other: _SelectStatementForCompoundArgument[_TP]

Callers

nothing calls this directly

Calls 1

_create_union_allMethod · 0.80

Tested by

no test coverage detected