Repository navigation
fix(cli): derive every dialect list from keywords.DialectNames - #829
Conversation
Add keywords.DialectNames as the single source of truth and derive CLI --dialect help, validation errors, the MCP validate_sql enum, config validation and the WASM bridge from it. Update the GitHub Action, VS Code gosqlx.dialect enum and docs/example configs to the full 11-dialect list, with drift tests covering package.json and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KTj1PEbxzVCETkeYrZKcrE
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task in 20s —— View job Review of PR #829: derive dialect lists from
|
|
Claude finished @ajitpratap0's task in 16s —— View job Review of PR #829: derive dialect lists from
|
Resolve conflicts with #825 (syntax highlighting) and #829 (dialect lists): CHANGELOG [Unreleased] Added keeps both entries; pkg/mcp/server.go unions the imports and derives supportedDialects from keywords.DialectNames, used for the validate_sql description and enum. Also correct the validate-sql.sh fallback comment: the greedy sed match takes the last file_path value, not the first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RkzVu3JY9Y6BRWfjesWts9
Description
Follow-up from #825. Dialect lists had drifted:
genericandclickhouse.gosqlx.dialectenum offered 6 values.bigqueryandredshift.Changes Made
keywords.DialectNames(): the single source of truth, in the same order asAllDialects.--dialecthelp on every command, andvalidateDialectNameerrors;validate_sqlenum;action.yml,action/scripts/validate.sh), the VS Code enum and settings validation, example configs, READMEs, and the CLI, configuration and MCP guides.transpile --from/--todeliberately keeps its own list. It supports 8 dialects plus thepostgresandmssqlaliases; a comment now says so.package.jsonenum must matchDialectNames(), every--dialecthelp must name every dialect, and docs or config lines listing dialects must be complete.Type of Change
Testing
task check,task test:cbinding, VS Code extension compileBreaking Changes
None.
Note: this touches
wasm/internal/bridgeandpkg/lsp/doc.go, which #825 and the LSP dialect PR also touch. Whichever merges later needs a trivial rebase.🤖 Generated with Claude Code
https://claude.ai/code/session_01KTj1PEbxzVCETkeYrZKcrE