union<G extends Fields> method
SelectedQuery<R, O, Projection<R, O> >
union<G extends Fields>(
- SelectedQuery<
R, G, Projection< otherR, O> >
Combines rows from the same projection declaration, removing duplicates.
Slot codecs and nullability must match, and both queries must belong to the same database or transaction. Set equality uses exported SQL cells.
Implementation
SelectedQuery<R, O, Projection<R, O>> union<G extends Fields>(
SelectedQuery<R, G, Projection<R, O>> other,
) => _derived(SetQueries<R, F>(this).union(other));