Neat project!<p>Just in case its helpful to you, I maintain pg_query together with my colleagues at pganalyze, which packages the Postgres parser as a library: <a href="https://github.com/pganalyze/libpg_query">https://github.com/pganalyze/libpg_query</a><p>Might be useful to include in your product as a way to run a quick syntax check on the query output by the LLM, without actually connecting to the database and causing an error in the logs.