woodpecker/store/datastore/sql/mysql/files/counts.sql

16 lines
176 B
MySQL
Raw Normal View History

2017-07-15 16:51:02 +00:00
-- name: count-users
SELECT count(1)
FROM users
-- name: count-repos
SELECT count(1)
FROM repos
2017-07-25 19:32:22 +00:00
WHERE repo_active = true
2017-07-15 16:51:02 +00:00
-- name: count-builds
SELECT count(1)
FROM builds