classHelp
final class Help
implements Statement
uses Snapshot
@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.
$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 $topicMethods§
public function deriveStatement(Derivation $derivation): voidRecords the open shape of the result.
Parameters
$derivation | Derivation |
Calls 5
- new ShowFacts line 49
- method-call Derivation::output() line 50
- method-call ShowFacts::query() line 50
- method-call ShowFacts::open() line 50
- new SessionState line 50
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 58
- class-const NameUse::Label() line 58
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.