final class UtilityMisuse
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A rule of SET, SHOW or EXPLAIN the statement breaks, which the server would refuse.

Reading the message of a refused formatdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('EXPLAIN FORMAT = yaml SELECT 1') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Unknown EXPLAIN format name

Properties§

public UtilityRule $rule

Methods§

public function __construct(public UtilityRule $rule)

Parameters

$ruleUtilityRuleThe broken rule
public function message(): string

Describes the broken rule in the words of the server.

Returns

string
Test cases 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 5