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
I would like to propose adding a transform functionality to enable easier manipulation of the Abstract Syntax Tree (AST).
This feature would allow users to traverse and modify the AST without having to implement complex tree traversal logic themselves.
The proposed functionality would be similar to the transform method available in sqlglot, a Python SQL parser and transpiler. In sqlglot, users can apply a transformation function to each node in the parsed expression tree.
I would like to propose adding a transform functionality to enable easier manipulation of the Abstract Syntax Tree (AST).
This feature would allow users to traverse and modify the AST without having to implement complex tree traversal logic themselves.
The proposed functionality would be similar to the transform method available in sqlglot, a Python SQL parser and transpiler. In sqlglot, users can apply a transformation function to each node in the parsed expression tree.
Example of how it could work in node-sql-parser:
This would allow users to easily modify the AST for various purposes, such as:
Reference:
sqlglot's transform functionality
The text was updated successfully, but these errors were encountered: