final class PublicationSchema
    implements PublicationMember
    uses Snapshot
Public API: explicitly declared with @visibility public.

The tables of a schema as an item of a publication: TABLES IN SCHEMA { name | CURRENT_SCHEMA }.

Mirrors PublicationObjSpec of type TABLES_IN_SCHEMA or TABLES_IN_CUR_SCHEMA. The schema is not part of a declaration context. Source: https://www.postgresql.org/docs/17/sql-createpublication.html.

Publishing the tables of the current schemadoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE PUBLICATION p FOR TABLES IN SCHEMA CURRENT_SCHEMA, s');
    [$operation->statement->objects[0]->schema, $operation->statement->objects[1]->schema?->value] // => [null, 's']

Properties§

public Name|null $schema
public bool $keywords = true

Methods§

public function __construct(public Name|null $schema, public bool $keywords = true)

Parameters

$schemaName|nullThe schema; null for CURRENT_SCHEMA
$keywordsboolWhether TABLES IN SCHEMA is written
public function introduced(): bool

Tells whether TABLES IN SCHEMA is written.

Returns

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

Writes the item.

Parameters

$outOutput
Calls 3

Test cases 7§

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 5

Relations§

Instantiated in 4
Type checks 6