Postgres::getDatabaseOwner PHP Method

getDatabaseOwner() public method

Return the database owner of a db
public getDatabaseOwner ( string $database ) : recordset
$database string the name of the database to get the owner for
return recordset of the db owner info
    function getDatabaseOwner($database)
    {
        $this->clean($database);
        $sql = "SELECT usename FROM pg_user, pg_database WHERE pg_user.usesysid = pg_database.datdba AND pg_database.datname = '{$database}' ";
        return $this->selectSet($sql);
    }
Postgres