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

Method union_all

lib/sqlalchemy/sql/selectable.py:6946–6963  ·  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[Unpack[_Ts]]
    )

Source from the content-addressed store, hash-verified

6944 return CompoundSelect._create_union(self, *other)
6945
6946 def union_all(
6947 self, *other: _SelectStatementForCompoundArgument[Unpack[_Ts]]
6948 ) -> CompoundSelect[Unpack[_Ts]]:
6949 r"""Return a SQL ``UNION ALL`` of this select() construct against
6950 the given selectables provided as positional arguments.
6951
6952 :param \*other: one or more elements with which to create a
6953 UNION.
6954
6955 .. versionchanged:: 1.4.28
6956
6957 multiple elements are now accepted.
6958
6959 :param \**kwargs: keyword arguments are forwarded to the constructor
6960 for the newly created :class:`_sql.CompoundSelect` object.
6961
6962 """
6963 return CompoundSelect._create_union_all(self, *other)
6964
6965 def except_(
6966 self, *other: _SelectStatementForCompoundArgument[Unpack[_Ts]]

Callers

nothing calls this directly

Calls 1

_create_union_allMethod · 0.80

Tested by

no test coverage detected