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
feat: implement transformer visitor system for PostgreSQL AST versions 13-17
- Add BaseTransformer abstract class following deparser visitor pattern
- Implement version-specific transformers (v13-to-v14, v14-to-v15, v15-to-v16, v16-to-v17)
- Add ASTTransformer orchestrator for chaining transformations
- Use dynamic method dispatch with node type names (AlterTableStmt, A_Const, etc.)
- Handle wrapped vs inlined node types correctly
- Add comprehensive test coverage with 21 passing tests
- Support full transformation pipeline from PostgreSQL v13 to v17
Key transformations implemented:
- v13→v14: Pass-through (no changes needed)
- v14→v15: A_Const restructuring, String/Float/BitString field renames, AlterPublicationStmt changes
- v15→v16: Advanced Var and Aggref handling
- v16→v17: Pass-through (no changes needed)
All tests passing: 5 test suites, 21 tests total
Co-Authored-By: Dan Lynch <pyramation@gmail.com>
0 commit comments