Commit 475cfcf
feat(expander): port expander to use internal AST types
Move expander from internal/engine/postgresql/expander to internal/x/expander
and port it to use the internal AST types instead of pg_query nodes.
Key changes:
- Use internal AST types (*ast.SelectStmt, *ast.InsertStmt, etc.)
- Use astutils.Search for star detection
- Use ast.Format instead of pg_query deparse
- Add Parser interface for dependency injection
- Add test cases for COUNT(*) (should not be expanded)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5f89eb2 commit 475cfcf
File tree
5 files changed
+550
-632
lines changed- internal
- engine/postgresql/expander
- x/expander
5 files changed
+550
-632
lines changed
0 commit comments