Postgres::getDatabaseComment PHP Метод

getDatabaseComment() публичный Метод

Return the database comment of a db from the shared description table
public getDatabaseComment ( string $database ) : recordset
$database string the name of the database to get the comment for
Результат 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);
    }
Postgres