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

Writes the pieces the definitions of tables, indexes and their constraints share.

Rule: PG-TABLE-WRITING-001. A name list is written in order, separated by commas; a parenthesized list adds the parentheses the grammar requires; a constraint name is written after CONSTRAINT; a storage parameter list is written as ( name = value, ... ). Source: https://www.postgresql.org/docs/17/sql-createtable.html. Status: Implemented.

Methods§

public function parenthesized(Output $out, list<Name> $names): void

Writes names separated by commas between parentheses.

Parameters

$outOutput
$nameslist<Name>
Test cases 1
Called from 9
Calls 2
public function constraintName(Output $out, ?Name $name): void

Writes CONSTRAINT and the name of a named constraint; nothing for an unnamed one.

Parameters

$outOutput
$name?Name
Test cases 1
Called from 15
Calls 1
public function definitions(Output $out, list<Definition> $definitions): void

Writes storage parameters or definitions between parentheses; nothing when there are none.

Parameters

$outOutput
$definitionslist<Definition>
Test cases 1
Called from 9
Calls 1
public function sequence(Output $out, list<Node> $nodes): void

Writes nodes one after another, without separators.

Parameters

$outOutput
$nodeslist<Node>
Test cases 1
Called from 15
Calls 1

Test cases 9§

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

Dedicated tests 9

Relations§

Instantiated in 43
Method calls 61