Agreed with you here. In my experience the best solutions go the opposite way, and parse the SQL in ways that can be used from the application.
https://sqlc.dev/ does this for me. Its been nice!
https://sqlc.dev/ does this for me. Its been nice!