#ifndef PGDATABASESIZES_H #define PGDATABASESIZES_H #include "Pgsql_Connection.h" #include #include #include class PgDatabaseSize { public: Oid oid; int64_t totalBytes; PgDatabaseSize() : oid(InvalidOid) , totalBytes(-1) {} }; using PgDatabaseSizes = std::vector; /// Returns the size of every database. The size is -1 when the current role has no CONNECT privilege. PgDatabaseSizes loadDatabaseSizes(Pgsql::Connection &connection); #endif // PGDATABASESIZES_H