DAMO开发者矩阵 SONAR数据库重点表说明

SONAR数据库重点表说明

 SONAR数据库很少泄密,直接去研究了一下。经过一天反复实践,把重点的几个表来说明一下。

说明一下,SONAR提供删除项目的功能,但大量数据并没有删除掉。

 

select * from projects where scope='PRJ' AND qualifier='TRK' order by name;

delete  from resource_index where root_project_id in (37641,37902,38053,37456,38204,38355,38506);

delete from sonar.snapshot_sources where snapshot_id

in

(

select id from sonar.snapshots where root_project_id in (37641,37902,38053,37456,38204,38355)

);

delete from sonar.project_measures where snapshot_id

in

(select id from snapshots where root_project_id in (37641,37902,38053,37456,38204,38355));

delete from projects where root_id in (37641,37902,38053,37456,38204,38355);

delete from projects where id in (37641,37902,38053,37456,38204,38355);

delete from sonar.snapshots where root_project_id in (37641,37902,38053,37456,38204,38355);

delete from rule_failures

where snapshot_id not in

(

select id from snapshots );

 

转载于:https://blog.51cto.com/myloveworld/1070709

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐

  • 浏览量 1077
  • 收藏 0
  • 0

所有评论(0)

查看更多评论 
已为社区贡献2条内容