classShowWhere
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.
$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 $conditionMethods§
public function __construct(public Scalar $condition)Parameters
$condition | Scalar | The condition |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ShowWhereTestcalls
Relations§
Instantiated in 2
Type checks 1
Type declarations 17
- type SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:93
- type SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:117
- type SqlSemantics\Platform\MySql\Rules\Utility\ShowFacts packages/sql-semantics-mysql/src/Rules/Utility/ShowFacts.php:52
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Program\ShowFunctionStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Program/ShowFunctionStatus.php:40
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Program\ShowProcedureStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Program/ShowProcedureStatus.php:40
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowColumns packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowColumns.php:51
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowDatabases packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowDatabases.php:41
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowEvents packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowEvents.php:44
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowKeys packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowKeys.php:50
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowOpenTables packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowOpenTables.php:44
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTableStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTableStatus.php:44
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTables packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTables.php:49
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTriggers packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTriggers.php:44
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowCharacterSet packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowCharacterSet.php:41
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowCollation packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowCollation.php:40
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowStatus.php:43
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowVariables packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowVariables.php:43