woodpecker/store/datastore/sql/mysql/files/counts.sql
2017-07-25 15:32:22 -04:00

15 lines
176 B
SQL

-- name: count-users
SELECT count(1)
FROM users
-- name: count-repos
SELECT count(1)
FROM repos
WHERE repo_active = true
-- name: count-builds
SELECT count(1)
FROM builds