final class Help
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

HELP: searches the help tables of the server for a topic.

Rule: MYSQL-HELP-001. The columns of the result depend on what the search string matches in the help tables: one topic returns its name, description and example, several topics or categories return their names and whether each is a category, a category returns its topics with the category name. The shape is therefore open and depends on the help content of the server. The topic is a string or a name, compared without regard to quoting. Terminates: a leaf. Source: https://dev.mysql.com/doc/refman/8.4/en/help.html. Status: Implemented.

Reading the topicdoctest
$help = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("HELP 'contents'");
    [$help->statement->topic->value, $help->shape()?->complete(), $help->toString()] // => ['contents', false, 'HELP contents']

Properties§

public Name $topic

Methods§

public function __construct(public Name $topic)

Parameters

$topicNameThe search string
public function deriveStatement(Derivation $derivation): void

Records the open shape of the result.

Parameters

$derivationDerivation
Calls 5
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 2

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 1