sqlftw icon indicating copy to clipboard operation
sqlftw copied to clipboard

AST traversal helpers

Open maryo opened this issue 3 years ago • 1 comments

The library is quite cool. Thanks.

Have you been thinking of a feature that would ease AST traversal?

Perhaps something like https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/cookbook/dql-custom-walkers.html or even something better :-P

Things like collecting all database names or even modifying the tree would be cool (but not easy :-)).

maryo avatar Nov 25 '22 22:11 maryo

hi, something like this will definitely be needed. in coming weeks i will be porting my migration check rules here. they was all targeted on CREATEs and ALTERs and do not care for expressions and type. but later i will be adding something like this for full static analysis. i did not yet think about how exactly it will be implemented

paranoiq avatar Feb 14 '23 10:02 paranoiq