Skip to content

Commit d0dea70

Browse files
committed
add initial data
0 parents  commit d0dea70

File tree

4 files changed

+66607
-0
lines changed

4 files changed

+66607
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Malicious
2+
```sql
3+
SELECT
4+
name,
5+
type,
6+
CASE
7+
WHEN description = 'security holding package' THEN NULL
8+
ELSE description
9+
END as description
10+
FROM package
11+
INNER JOIN malicious_packages mp ON mp.package_id = package.id
12+
ORDER BY type, name;
13+
```
14+
15+
# Deprecated
16+
```sql
17+
SELECT
18+
name,
19+
type,
20+
CASE
21+
WHEN description = 'security holding package' THEN NULL
22+
ELSE description
23+
END as description
24+
FROM package WHERE is_deprecated
25+
ORDER BY type, name;
26+
```
27+
28+
# Archived
29+
```sql
30+
SELECT
31+
package.name,
32+
type,
33+
CASE
34+
WHEN package.description = 'security holding package' THEN NULL
35+
ELSE package.description
36+
END as description
37+
FROM package INNER JOIN repository ON package.repository_id=repository.id AND repository.archived=TRUE
38+
ORDER BY type, name;
39+
```

0 commit comments

Comments
 (0)