You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a googlesql dialect backed by github.com/sqlc-dev/zetajones, a pure-Go
GoogleSQL/ZetaSQL parser that passes the entire upstream googlesql parser
golden-test corpus.
New files in internal/engine/googlesql/:
- parse.go: Parser implementation using zetajones
- convert.go: AST converter from zetajones to sqlc AST
- utils.go: helpers (identifiers, string unquoting, type rendering)
- catalog.go, stdlib.go: catalog initialization
- reserved.go: reserved keywords (delegates to zetajones/token)
Covers SELECT (joins, subqueries, CTEs, set ops, window functions),
INSERT/UPDATE/DELETE (incl. THEN RETURN), CREATE/DROP/TRUNCATE TABLE, and
expressions incl. named @params (mapped to the same A_Expr shape the
PostgreSQL engine produces, so the named-parameter rewriter consumes them).
Unsupported constructs convert to ast.TODO without panicking.
Usage: sqlc parse --dialect googlesql queries.sql
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments