Skip to content

Commit 3b140f9

Browse files
committed
Add sanity-check queries
1 parent a740330 commit 3b140f9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

sql/sanity-check.sql

+18-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,21 @@ from authors a
33
right outer join history h
44
on a.author_id = h.author_id
55
or a.author_id = h.committer_id
6-
where h.commit_id = null;
6+
where h.commit_id = null;
7+
8+
select * from versions order by release_date desc limit 1;
9+
10+
select version_name, count(file_id) as number_of_files
11+
from full_files
12+
where version_main = 3
13+
group by version_name, release_date
14+
order by release_date;
15+
16+
select version_name, count(function_id) as number_of_functions
17+
from functions, full_files
18+
where version_main = 3
19+
and functions.file_id = full_files.file_id
20+
group by version_name, release_date
21+
order by release_date;
22+
23+

0 commit comments

Comments
 (0)