I agree, end-to-end tests have been really valuable for catching SQL issues in my experience.
> Identify unsafe queries that could potentially lead to SQL injections
This feature seems like a perfect use case for static analysis and would be a great tool in addition to automated tests.