public getDatabaseComment ( string $database ) : recordset | ||
$database | string | the name of the database to get the comment for |
return | recordset | of the db comment info |
function getDatabaseComment($database)
{
$this->clean($database);
$sql = "SELECT description FROM pg_catalog.pg_database JOIN pg_catalog.pg_shdescription ON (oid=objoid AND classoid='pg_database'::regclass) WHERE pg_database.datname = '{$database}' ";
return $this->selectSet($sql);
}