enum WriteRule: string
Public API: explicitly declared with @visibility public.

The rules of MySQL a grammatical data manipulation statement can break without naming a missing object.

Each case holds the message of the server error it corresponds to. Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.

Reading which rule a statement breaksdoctest
$values = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('VALUES ROW(DEFAULT)');
    $values->facts->diagnostics[0]->rule // => \SqlSemantics\Platform\MySql\Statement\Dml\Problem\WriteRule::DefaultOutsideInsert

Cases§

case DefaultOutsideInsert = 'A VALUES clause cannot use DEFAULT values, unless used as a source in an INSER…
case OrderedMultipleUpdate = 'Incorrect usage of UPDATE and ORDER BY'
case LimitedMultipleUpdate = 'Incorrect usage of UPDATE and LIMIT'
case WildcardColumn = "Unknown column '*' in 'field list'"
case CommonTableTarget = 'The target table is a common table expression, which is not updatable'
case NonUpdatableTarget = 'The target table is a derived table, a table function or a common table expres…

Test cases 4§

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 3

Relations§

Constant reads 7
Type declarations 1