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 );

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章