final class JsonOrdinalityColumn
    implements JsonTableColumn
    uses Snapshot
Public API: explicitly declared with @visibility public.

name FOR ORDINALITY: a JSON_TABLE column that numbers the rows.

Source: https://www.postgresql.org/docs/17/functions-json.html#FUNCTIONS-SQLJSON-TABLE.

Reading an ordinality columndoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Relation\Json\JsonOrdinalityColumn(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('n')))->name->value // => 'n'

Properties§

public Name $name

Methods§

public function __construct(public Name $name)

Parameters

$nameNameThe column name
public function render(Output $out): void

Writes the name and FOR ORDINALITY.

Parameters

$outOutput
Calls 2

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Type checks 1