mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-04 23:56:30 +00:00
15 lines
238 B
MySQL
15 lines
238 B
MySQL
|
-- name: count-users
|
||
|
|
||
|
SELECT reltuples
|
||
|
FROM pg_class WHERE relname = 'users';
|
||
|
|
||
|
-- name: count-repos
|
||
|
|
||
|
SELECT reltuples
|
||
|
FROM pg_class WHERE relname = 'repos';
|
||
|
|
||
|
-- name: count-builds
|
||
|
|
||
|
SELECT reltuples
|
||
|
FROM pg_class WHERE relname = 'builds';
|