Possible to analyse SQL queries in Sonar?

╄→гoц情女王★ 提交于 2019-12-10 16:32:02

问题


I am using Sonar to analyse our Java code in a very large project. We mostly use Hibernate, but there are also a lot of plain SQL queries in our code. Is it possible to analyse those SQL queries by Sonar? I noticed there is a plugin for at least something similar, but I am unsure whether it fits my needs here. Some of our queries cause headaches, so it would be convenient if Sonar could notify of SQL anti-patterns.


回答1:


There is a commercial PL/SQL plugin, but its designed to analyse Oracle files.

Not aware of any Sonar tool which analyzes SQL strings, embedded within Java programs.




回答2:


A commercial TSQL option is http://www.techcognia.com/Home.aspx

Don't know of any free/open source version for Microsoft SQL.



来源:https://stackoverflow.com/questions/13533744/possible-to-analyse-sql-queries-in-sonar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!