* Combines the current query with one or more other queries using `UNION` (with deduplication). * All queries must select the same columns. Returns a `QueryBuilder` that * can be used with `$in`, passed to `qb.from()`, or converted via `.getQuery()`, * `.getParams()`, `.toQuery()`, `.toRaw(
(...others: (QueryBuilder<any> | NativeQueryBuilder)[])
| 2765 | * ``` |
| 2766 | */ |
| 2767 | union(...others: (QueryBuilder<any> | NativeQueryBuilder)[]): QueryBuilder<Entity> { |
| 2768 | return this.buildUnionQuery('union', others); |
| 2769 | } |
| 2770 | |
| 2771 | private buildUnionQuery( |
| 2772 | separator: 'union' | 'union all', |
no test coverage detected