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

A tablespace or log file group option that breaks a rule the server checks while it parses the statement.

The server rejects the statement with the error of the rule. Source: https://dev.mysql.com/doc/refman/8.4/en/create-tablespace.html.

Describing a repeated optiondoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Problem\StorageProblem(\SqlSemantics\Platform\MySql\Statement\Server\Problem\StorageRule::RepeatedOption, 'COMMENT'))->message() // => 'The COMMENT option is written more than once (ER_FILEGROUP_OPTION_ONLY_ONCE).'

Properties§

public StorageRule $rule
public string $option

Methods§

public function __construct(public StorageRule $rule, public string $option)

Parameters

$ruleStorageRuleThe broken rule
$optionstringThe keyword of the option, such as COMMENT or INITIAL_SIZE
public function message(): string

Describes the problem.

Returns

string
Test cases 1
Calls 3

Test cases 13§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 12

Relations§

Instantiated in 4