interfaceDefaultScope
interface DefaultScope
extends Node
Public API: explicitly declared with
@visibility public.One clause that limits ALTER DEFAULT PRIVILEGES: IN SCHEMA or FOR ROLE.
Mirrors the DefElem of DefACLOption; the server keeps one option for the schemas and one for the roles and rejects a clause given twice. Source: https://www.postgresql.org/docs/17/sql-alterdefaultprivileges.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER DEFAULT PRIVILEGES FOR USER joe GRANT SELECT ON TABLES TO ann');
$operation->statement->scopes[0]->option() // => 'roles'Methods§
public function option(): stringAnswers the option of the server the clause fills: schemas or roles.
Returns
stringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.