goqu icon indicating copy to clipboard operation
goqu copied to clipboard

is goqu expressive enough to use as an AST backend ?

Open forrackun opened this issue 1 year ago • 1 comments

I have a somewhat stupid question. I want to parse some SQL query (just SELECT) and do some checks (simple transformation) and re-emit vendor specific dialect. i was thinking maybe I can offload vendor specific idiocracies to goqu by walking AST and calling goqu query builder thing.

any advice about how to achieve something like that. i am ok if some select statements are not 100 expressible. or is this idea stupid and i should just emit myself, maybe by using goqu/dialect as inspiration.

Thank you

forrackun avatar Apr 02 '23 14:04 forrackun

i hope here , this library could be a little more active. everyone is busy?

gcjininfo avatar Apr 25 '23 06:04 gcjininfo