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.

Reading the patterndoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW DATABASES LIKE 'shop%'");
    $show->statement->filter->pattern->value // => 'shop%'

Properties§

public Text $pattern

Methods§

public function __construct(public Text $pattern)

Parameters

$patternTextThe pattern
public function render(Output $out): void

Writes LIKE and the pattern.

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 1
Type checks 2
Type declarations 15