Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f701556
setup
pyramation Jun 24, 2025
a479ced
added enum converters and parser config
pyramation Jun 24, 2025
a753074
fixtures and useful info
pyramation Jun 24, 2025
dec2b0f
notes
pyramation Jun 24, 2025
d814538
only types
pyramation Jun 24, 2025
a096d5c
notes
pyramation Jun 24, 2025
d4ba1a1
feat: implement transformer visitor system for PostgreSQL AST version…
devin-ai-integration[bot] Jun 24, 2025
27c3ad9
updates
pyramation Jun 24, 2025
d74a5b7
feat: implement complete end-to-end integration test for PG13→PG17 tr…
devin-ai-integration[bot] Jun 24, 2025
78ccb94
updates with test utils
pyramation Jun 24, 2025
08b43d1
remove comments
pyramation Jun 24, 2025
be157ce
fix: handle A_Const zero values correctly in V13ToV14Transformer
devin-ai-integration[bot] Jun 24, 2025
be81b8d
feat: implement complete PostgreSQL AST transformer system (v13→v17)
devin-ai-integration[bot] Jun 24, 2025
129ad47
fix: improve AST transformations for INSERT statements and nested str…
devin-ai-integration[bot] Jun 24, 2025
ba2c280
harness
pyramation Jun 24, 2025
24564db
Merge branch 'transform-test-harness' into exp/transform
pyramation Jun 24, 2025
4030434
tests
pyramation Jun 24, 2025
1d01b7d
cleanup possibly bad AST tests
pyramation Jun 24, 2025
3aadd87
tests
pyramation Jun 24, 2025
a12ebec
fix: improve field preservation in BaseTransformer and add Alias meth…
devin-ai-integration[bot] Jun 24, 2025
8e2f172
fix: add DefElem method to handle Integer to Boolean transformations …
devin-ai-integration[bot] Jun 25, 2025
7bc4d31
fix: update transformers with improved field preservation and method …
devin-ai-integration[bot] Jun 25, 2025
61c2806
fix: update DeclareCursorStmt to transform options field from 32 to 2…
devin-ai-integration[bot] Jun 25, 2025
e303999
feat: add debug tests and improve String transformations in V14ToV15T…
devin-ai-integration[bot] Jun 25, 2025
79d7959
fix: improve ObjectWithArgs logic to handle OBJECT_PROCEDURE and OBJE…
devin-ai-integration[bot] Jun 25, 2025
900f728
fix: add GrantStmt method to handle REVOKE EXECUTE ON FUNCTION statem…
devin-ai-integration[bot] Jun 25, 2025
2c6fcb8
fix: remove automatic inh field addition from BaseTransformer
devin-ai-integration[bot] Jun 25, 2025
f2d7463
fix: extend DefElem method to handle cycle defname Integer-to-Boolean…
devin-ai-integration[bot] Jun 25, 2025
0ce8224
fix: add SQL syntax detection to FuncCall method for proper funcforma…
devin-ai-integration[bot] Jun 25, 2025
a8fb1da
fix: preserve Integer ival field in v14-to-v15 and add missing ival i…
devin-ai-integration[bot] Jun 25, 2025
f1271dc
fix: add -32767 to A_Const Integer values that should result in empty…
devin-ai-integration[bot] Jun 25, 2025
63fd7f1
clean
pyramation Jun 25, 2025
3d86f39
types
pyramation Jun 25, 2025
f7d68a8
updates
pyramation Jun 25, 2025
2018a58
task
pyramation Jun 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
104 changes: 104 additions & 0 deletions __fixtures__/transform/13/alter_table.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
[
{
"query": "ALTER TABLE users ADD COLUMN email TEXT",
"ast": {
"version": 130008,
"stmts": [
{
"stmt": {
"AlterTableStmt": {
"relation": {
"relname": "users",
"inh": true,
"relpersistence": "p",
"location": 12
},
"cmds": [
{
"AlterTableCmd": {
"subtype": "AT_AddColumn",
"def": {
"ColumnDef": {
"colname": "email",
"typeName": {
"names": [
{
"String": {
"str": "text"
}
}
],
"typemod": -1,
"location": 35
},
"is_local": true,
"location": 29
}
},
"behavior": "DROP_RESTRICT"
}
}
],
"relkind": "OBJECT_TABLE"
}
}
}
]
}
},
{
"query": "ALTER TABLE users DROP COLUMN email",
"ast": {
"version": 130008,
"stmts": [
{
"stmt": {
"AlterTableStmt": {
"relation": {
"relname": "users",
"inh": true,
"relpersistence": "p",
"location": 12
},
"cmds": [
{
"AlterTableCmd": {
"subtype": "AT_DropColumn",
"name": "email",
"behavior": "DROP_RESTRICT"
}
}
],
"relkind": "OBJECT_TABLE"
}
}
}
]
}
},
{
"query": "ALTER TABLE users RENAME COLUMN name TO full_name",
"ast": {
"version": 130008,
"stmts": [
{
"stmt": {
"RenameStmt": {
"renameType": "OBJECT_COLUMN",
"relationType": "OBJECT_TABLE",
"relation": {
"relname": "users",
"inh": true,
"relpersistence": "p",
"location": 12
},
"subname": "name",
"newname": "full_name",
"behavior": "DROP_RESTRICT"
}
}
}
]
}
}
]
Loading
Loading