Skip to content

Add Format function to reconstruct SQL from AST#50

Merged
kyleconroy merged 1 commit intomainfrom
claude/add-format-function-nr7PY
Dec 26, 2025
Merged

Add Format function to reconstruct SQL from AST#50
kyleconroy merged 1 commit intomainfrom
claude/add-format-function-nr7PY

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

  • Create internal/format package with Format, Expression, and Statement formatters
  • Add parser.Format public function that returns SQL string from statements
  • Update parse_test to verify Format output matches original query for 00007_array test
  • Uses strings.Builder for efficient string construction

- Create internal/format package with Format, Expression, and Statement formatters
- Add parser.Format public function that returns SQL string from statements
- Update parse_test to verify Format output matches original query for 00007_array test
- Uses strings.Builder for efficient string construction
@kyleconroy kyleconroy merged commit 02343d9 into main Dec 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants