Skip to content

Commit

Permalink
feat(query-compiler): add within group processing to default query co…
Browse files Browse the repository at this point in the history
…mpiler

kysely-org#781
  • Loading branch information
Dev K0te committed Jun 7, 2024
1 parent c81d766 commit 9408cb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/query-compiler/default-query-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,12 @@ export class DefaultQueryCompiler

this.append(')')

if (node.withinGroup) {
this.append(' within group (')
this.visitNode(node.withinGroup)
this.append(')')
}

if (node.filter) {
this.append(' filter(')
this.visitNode(node.filter)
Expand Down

0 comments on commit 9408cb9

Please sign in to comment.