classInSchemas
final class InSchemas
implements DefaultScope
uses Snapshot
Public API: explicitly declared with
@visibility public.The clause IN SCHEMA of ALTER DEFAULT PRIVILEGES: the defaults apply to objects created in these schemas.
Source: https://www.postgresql.org/docs/17/sql-alterdefaultprivileges.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER DEFAULT PRIVILEGES IN SCHEMA app, audit GRANT SELECT ON TABLES TO joe');
$operation->statement->scopes[0]->schemas[1]->value // => 'audit'Properties§
public non-empty-list<Name> $schemasMethods§
public function __construct(list<Name> $schemas)Parameters
$schemas | list<Name> | The schemas in the order written, at least one |
Calls 2
- static-call Check::listOf() line 37
- class-const Name::class() line 37
public function option(): stringpublic function render(Output $out): voidWrites the clause.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 53
- method-call Output::symbol() line 56
- method-call Output::name() line 58
- class-const NameUse::Column() line 58
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.