Postgres::getDatabaseOwner PHP 메소드

getDatabaseOwner() 공개 메소드

Return the database owner of a db
public getDatabaseOwner ( string $database ) : recordset
$database string the name of the database to get the owner for
리턴 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