interfaceJsonTableColumn
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.
$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
$derivation | Derivation | |
$environment | Environment |
Returns
list<OutputSlot>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
- class-const SqlSemantics\Platform\MySql\Statement\Call\Json\NestedColumns::__construct() packages/sql-semantics-mysql/src/Statement/Call/Json/NestedColumns.php:47
- class-const SqlSemantics\Platform\MySql\Statement\Relation\JsonTable::__construct() packages/sql-semantics-mysql/src/Statement/Relation/JsonTable.php:59