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
Wire the GoogleSQL (zetajones) engine into sqlc's native static analysis so
`sqlc analyze --dialect googlesql` infers result columns and parameters from a
schema, mirroring the existing PostgreSQL, MySQL, and SQLite support.
Changes:
- Add the `googlesql` engine constant and register its parser, catalog, and
selector in the compiler.
- Accept `googlesql` as an `analyze` dialect and document it (and the
previously-undocumented `parse` dialect).
- Keep named parameters in their native `@name` form when rewriting, since
GoogleSQL supports named parameters (Spanner requires them), and quote
identifiers with backticks during star expansion.
- Include a statement's leading comment in its reported location so the
`-- name:` annotation is captured; this also fixes name extraction for
`sqlc parse --dialect googlesql`.
- Initialize the list fields the compiler walks unconditionally
(ReturningList, INSERT ... VALUES TargetList, UPDATE FromClause), fixing
nil-pointer panics when analyzing INSERT/UPDATE/DELETE statements.
Add end-to-end coverage for basic SELECT analysis and for INSERT/UPDATE/DELETE
(including THEN RETURN).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CmGTScco7g1CNc5LjPSJVd
0 commit comments