(subQuery: RawQueryFragment | NativeQueryBuilder, alias: string)
| 1505 | } |
| 1506 | |
| 1507 | withSubQuery(subQuery: RawQueryFragment | NativeQueryBuilder, alias: string): this { |
| 1508 | this.ensureNotFinalized(); |
| 1509 | |
| 1510 | if (isRaw(subQuery)) { |
| 1511 | this.#state.subQueries[alias] = this.platform.formatQuery(subQuery.sql, subQuery.params); |
| 1512 | } else { |
| 1513 | this.#state.subQueries[alias] = subQuery.toString(); |
| 1514 | } |
| 1515 | |
| 1516 | return this; |
| 1517 | } |
| 1518 | |
| 1519 | /** |
| 1520 | * Adds a WHERE clause to the query using an object condition. |
nothing calls this directly
no test coverage detected