interface JsonTableColumn
    extends Node
Public API: explicitly declared with @visibility public.

One column of the COLUMNS clause of JSON_TABLE: an ordinality, path, EXISTS or NESTED column.

The function-like expression family provides the structure; the query family holds the columns in the JSON_TABLE relation and builds its row shape from deriveColumns(). Source: https://dev.mysql.com/doc/refman/8.4/en/json-table-functions.html.

Reading the output a column contributesdoctest
$column = new \SqlSemantics\Platform\MySql\Statement\Call\Json\OrdinalityColumn(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('n'));
    $column->name->value // => 'n'

Methods§

public function deriveColumns(
    Derivation $derivation,
    Environment $environment,
): list<OutputSlot>

Derives the expressions the column holds and answers the output slots it contributes, in order, nested columns flattened.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Test cases 1§

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

Dedicated tests 1

Relations§

Implemented by 3
Constant reads 2
Type declarations 1