final class ShowWhere
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The WHERE clause of a SHOW: the rows of the statement for which a condition holds.

The condition sees the result columns of the statement and nothing else: a column name resolves to a column of the rows SHOW returns. Source: https://dev.mysql.com/doc/refman/8.4/en/extended-show.html.

Resolving a condition against the result columnsdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW VARIABLES WHERE Variable_name = 'port'");
    $show->facts->scalar($show->statement->filter->condition->left)->resolution->slot->name?->value // => 'Variable_name'

Properties§

public Scalar $condition

Methods§

public function __construct(public Scalar $condition)

Parameters

$conditionScalarThe condition
public function render(Output $out): void

Writes WHERE and the condition.

Parameters

$outOutput
Calls 1

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§

Instantiated in 2
Type checks 1
Type declarations 17