I am looking for a good SQL parser. One of them will work with subqueries, nonselectable queries, CTEs, window functions, and other legal SQL elements.
The result will be some sort of abstract syntax tree that I could subsequently work on.
The language is mostly irrelevant, since I am ready to learn a new language only to use the library, if it exists.
I know that it is technically possible to extract the parser from some open source database, but it is far from easy (at least for the PostgreSQL analyzer that I need).
user80168
source share