node-sql-parser icon indicating copy to clipboard operation
node-sql-parser copied to clipboard

[Help] AST format documentation

Open LRagji opened this issue 1 year ago • 4 comments

Apologies if this is already mentioned anywhere, but i dont see the AST nodes documented anywhere i understand node can be recursive.. but there has to be hand full of ast node types with their props defined? The reason for this question is cause i want to manupilate the AST basically break select join queries of multiple tables into simple select queries for each table with where clause... cant find any documentation around different nodes types and their props.....

Thanks

LRagji avatar Jan 25 '24 11:01 LRagji

+1 to this; the lack of documentation means I'm pretty much guessing when it comes to how to look at an AST here.

gtowey-air avatar Feb 22 '24 00:02 gtowey-air

+1 as well. I'm super appreciative of this library, but you're honestly shooting in the dark with it. I've even tried going through the code/type definitions. But not helpful. I'd offer to help add docs of what I've managed to piece together about it, but just when I think I'm getting it, there's a gotcha. So I'm nowhere near confident that my interpretation of how it works is accurate. I'm not using it in anything mission critical, so not the end of the world for me. But that said, I don't know how you could actually use this in a mission critical situation since there's absolutely no way you could know you've covered the bases.

isomx avatar Apr 04 '24 11:04 isomx

the type definitions have been pretty helpful for me

aok-solutions avatar Apr 04 '24 19:04 aok-solutions

Improving type definitions is a must in improving DX

DemonHa avatar Apr 13 '24 04:04 DemonHa