Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 828 Bytes

README.md

File metadata and controls

39 lines (37 loc) · 828 Bytes

Malicious

SELECT 
    name, 
    type, 
    CASE 
        WHEN description = 'security holding package' THEN NULL
        ELSE description 
    END as description
FROM package
INNER JOIN malicious_packages mp ON mp.package_id = package.id
ORDER BY type, name;

Deprecated

SELECT 
    name, 
    type, 
    CASE 
        WHEN description = 'security holding package' THEN NULL
        ELSE description 
    END as description
FROM package WHERE is_deprecated
ORDER BY type, name;

Archived

SELECT 
    package.name, 
    type, 
    CASE 
        WHEN package.description = 'security holding package' THEN NULL
        ELSE package.description 
    END as description
FROM package INNER JOIN repository ON package.repository_id=repository.id AND repository.archived=TRUE
ORDER BY type, name;