final class PublicationRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql\Lowering". Code outside that scope must not name this declaration.

Lowers the publication commands.

Rule: PG-PUBLICATION-LOWER-001. Scope: CreatePublicationStmt, PublicationObjSpec, pub_obj_list, AlterPublicationStmt. Constructors: CreatePublication, AlterPublicationOptions, AlterPublicationMembers, PublicationTable, PublicationSchema. An item without keywords is read with the kind of the item before it, as PG-PUBLICATION-LIST-001 states: a bare name after a schema is a schema, otherwise a table. A table name with an indirection takes field selections only, at most three parts. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createpublication.html, https://www.postgresql.org/docs/17/sql-alterpublication.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function object(Form $form, ?PublicationMember $previous): PublicationMember

Lowers one PublicationObjSpec after the item before it.

Parameters

$formForm
$previous?PublicationMember

Throws

AnalysisException When a table name has a subscript or more than three parts, which `makeRangeVarFromQualifiedName` called by the action of `PublicationObjSpec` in `gram.y` rejects
ImplementationGap When the production has no rule
Test cases 1
Called from 1
Calls 10
public function continued(Form $form, ?PublicationMember $previous): PublicationMember
public function star(Node $relation): bool

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 1
Method calls 1