cycquery.ops.UnionΒΆ

class Union(union_table, union_all=False)[source]ΒΆ

Bases: QueryOp

Union two tables.

Parameters:

Examples

>>> Union(table2)(table1)
>>> Union(table2, union_all=True)(table1)

Methods

__call__(table)[source]ΒΆ

Process the table.

Parameters:

table (Union[Select, Subquery, Table, DBTable]) – Table on which to perform the operation.

Returns:

Processed table.

Return type:

sqlalchemy.sql.selectable.Subquery