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.

Telling which option of the server a clause fillsdoctest
$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(): string

Answers the option of the server the clause fills: schemas or roles.

Returns

string

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Implemented by 2
Constant reads 1