1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-11 17:18:09 +02:00
woodpecker/store/datastore/sql/postgres/files/counts.sql
2017-05-03 23:25:33 +02:00

15 lines
238 B
SQL

-- 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';