classShowLike
final class ShowLike
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The LIKE clause of a SHOW: the rows whose name matches a pattern.
The pattern is matched with the rules of the LIKE operator against the column the statement names its rows by (the first column, or the variable name of SHOW VARIABLES and SHOW STATUS); % and _ are wildcards. Source: https://dev.mysql.com/doc/refman/8.4/en/extended-show.html.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW DATABASES LIKE 'shop%'");
$show->statement->filter->pattern->value // => 'shop%'Properties§
public Text $patternMethods§
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
ShowLikeTestcalls
Relations§
Instantiated in 1
Type checks 2
- instanceof SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowDatabases::deriveRelation() packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowDatabases.php:58
- instanceof SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTables::deriveRelation() packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTables.php:71
Type declarations 15
- type SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:93
- 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\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