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

Struct WithClause

pkg/sql/ast/ast.go:107–111  ·  view source on GitHub ↗

WithClause represents a WITH clause in a SQL statement. It supports both simple and recursive Common Table Expressions (CTEs). Phase 2 Complete: Full parser integration with all statement types.

Source from the content-addressed store, hash-verified

105// It supports both simple and recursive Common Table Expressions (CTEs).
106// Phase 2 Complete: Full parser integration with all statement types.
107type WithClause struct {
108 Recursive bool
109 CTEs []*CommonTableExpr
110 Pos models.Location // Source position of the WITH keyword (1-based line and column)
111}
112
113func (w *WithClause) statementNode() {}
114func (w WithClause) TokenLiteral() string { return "WITH" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected