Postgres::getRole PHP Method

getRole() public method

Returns information about a single role
public getRole ( $rolename ) : The
$rolename The name of the role to retrieve
return The role's data
    function getRole($rolename)
    {
        $this->clean($rolename);
        $sql = "\n\t\t\tSELECT rolname, rolsuper, rolcreatedb, rolcreaterole, rolinherit,\n\t\t\t\trolcanlogin, rolconnlimit, rolvaliduntil, rolconfig\n\t\t\tFROM pg_catalog.pg_roles WHERE rolname='{$rolename}'";
        return $this->selectSet($sql);
    }
Postgres