mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-03 23:26:29 +00:00
15 lines
232 B
SQL
15 lines
232 B
SQL
-- name: count-users
|
|
|
|
SELECT reltuples
|
|
FROM pg_class WHERE relname = 'users'
|
|
|
|
-- name: count-repos
|
|
|
|
SELECT count(1)
|
|
FROM repos
|
|
WHERE repo_active = true
|
|
|
|
-- name: count-builds
|
|
|
|
SELECT reltuples
|
|
FROM pg_class WHERE relname = 'builds'
|