(query: QueryIR)
| 1317 | } |
| 1318 | |
| 1319 | function collectQueryAliases(query: QueryIR): Array<string> { |
| 1320 | const aliases = new Set<string>(collectFromAliases(query.from)) |
| 1321 | if (query.join) { |
| 1322 | for (const join of query.join) { |
| 1323 | aliases.add(join.from.alias) |
| 1324 | } |
| 1325 | } |
| 1326 | return [...aliases] |
| 1327 | } |
| 1328 | |
| 1329 | function collectFromAliases(from: QueryIR[`from`]): Array<string> { |
| 1330 | if (from.type === `unionFrom`) { |
no test coverage detected