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
Copy file name to clipboardExpand all lines: packages/transform/RULES.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,3 +235,49 @@ This ensures faster feedback loops and prevents dependency on external CI system
235
235
## Summary
236
236
237
237
Always use `@pgsql/parser` for multi-version PostgreSQL AST parsing in the transform package. This is the only way to get accurate version-specific results and build working transformers. Remember that all parser methods are async and must be awaited.
238
+
239
+
240
+
# Transformer Rules
241
+
242
+
## Core Principles
243
+
244
+
### 1. Explicit Field Handling (REQUIRED)
245
+
**Always explicitly handle each field** rather than using spread operators to copy everything.
0 commit comments