Skip to content

Commit

Permalink
Add from clause sub select support
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke committed Feb 25, 2025
1 parent 660a770 commit 2bbe414
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 440 deletions.
9 changes: 9 additions & 0 deletions lyx/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ type JoinExpr struct {
Alias string
}

type SubSelect struct {
Arg Node
Alias string
}

type AExprEmpty struct {
}

Expand Down Expand Up @@ -164,6 +169,10 @@ func (r *JoinExpr) SetAlias(s string) {
r.Alias = s
}

func (r *SubSelect) SetAlias(s string) {
r.Alias = s
}

type CommonTableExpr struct {
Name string
SubQuery Node
Expand Down
Loading

0 comments on commit 2bbe414

Please sign in to comment.