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

One assignment of a SET statement: a variable, the connection character sets, or a password.

Reading the items of a SET statementdoctest
$set = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SET @a = 1, NAMES utf8mb4');
    array_map(static fn (\SqlSemantics\Platform\MySql\Statement\Utility\Set\SetItem $item): string => $item::class, $set->statement->items) // => [\SqlSemantics\Platform\MySql\Statement\Utility\Set\UserAssignment::class, \SqlSemantics\Platform\MySql\Statement\Utility\Set\SetNames::class]

Methods§

public function deriveItem(Derivation $derivation): void

Derives the facts of the parts of the item.

Parameters

$derivationDerivation

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 7
Constant reads 1
Type declarations 2