1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix(metrics): warning - postgres - failed to get database size (expected 0 arguments, got 1)

This commit is contained in:
Dawid Wysokiński 2023-01-16 17:23:39 +01:00
parent 97a10cc08a
commit 2e0e791853
No known key found for this signature in database
GPG Key ID: B5445E357FB8B892

View File

@ -16,7 +16,7 @@ FROM information_schema.tables
WHERE table_schema = ? WHERE table_schema = ?
GROUP BY table_schema` GROUP BY table_schema`
const sizeTplPostgres = `SELECT pg_database_size('%s');` const sizeTplPostgres = `SELECT pg_database_size(?);`
const sizeTplSqlite = ` const sizeTplSqlite = `
SELECT page_count * page_size as size SELECT page_count * page_size as size