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.

Reading the schemasdoctest
$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> $schemas

Methods§

public function __construct(list<Name> $schemas)

Parameters

$schemaslist<Name>The schemas in the order written, at least one
Calls 2
public function option(): string

Answers the option the clause fills.

Returns

string
Test cases 1
public function render(Output $out): void

Writes the clause.

Parameters

$outOutput
Calls 4

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 1