Get DB size from Postgres
This commit is contained in:
parent
273bb20baa
commit
7b056a4a41
5 changed files with 46 additions and 44 deletions
2
sql/queries/stats.sql
Normal file
2
sql/queries/stats.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- name: DBSize :one
|
||||
SELECT pg_size_pretty(pg_database_size(current_database()));
|
||||
Loading…
Add table
Add a link
Reference in a new issue