MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / SetOperation

Struct SetOperation

pkg/sql/ast/ast.go:151–156  ·  view source on GitHub ↗

SetOperation represents set operations (UNION, EXCEPT, INTERSECT) between two statements. It supports the ALL modifier (e.g., UNION ALL) and proper left-associative parsing. Phase 2 Complete: Full parser support with left-associative precedence.

Source from the content-addressed store, hash-verified

149// It supports the ALL modifier (e.g., UNION ALL) and proper left-associative parsing.
150// Phase 2 Complete: Full parser support with left-associative precedence.
151type SetOperation struct {
152 Left Statement
153 Operator string // UNION, EXCEPT, INTERSECT
154 Right Statement
155 All bool // UNION ALL vs UNION
156}
157
158func (s *SetOperation) statementNode() {}
159func (s *SetOperation) queryExpressionNode() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected