Closed vamshiaruru32 closed 1 year ago
Modifying the SQL AST is also ok. You can modify the AST and convert it to String.
Set a breakpoint after parsing SQL, and check the AST structure will help you understand how to modify it. There is a relatively complex example of modifying the AST. https://github.com/auxten/go-sql-lineage/blob/main/lineage/normalize.go#L32
Hi! I am total beginner to this library and am unable to figure out how to add a where clause to a select statement. Is this library only meant for parsing and getting a tree, but not adding anything to that tree? Any help is appreciated, thank you.