final class DmlRules
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The entry rules of the dml family: the methods other families and the statement dispatcher call.

Rule: MYSQL-DML-ENTRY-001. Scope: INSERT, REPLACE, UPDATE, DELETE, LOAD, DO, HANDLER, CALL, prepared statements and IMPORT TABLE. The method names, parameters and return types are fixed by the family plan. A method delegates to the rule classes of this family; a method the family has not implemented reports a missing rule. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-data-manipulation-statements.html. Status: Specified.

Properties§

public Lowering $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function duplicateHandling(Node $duplicate): ?DuplicateHandling

Lowers REPLACE or IGNORE before a query that fills a table: a node of opt_duplicate or duplicate; neither is null.

Parameters

$duplicateNode

Throws

ImplementationGap When a production has no rule
Calls 2
public function fileFormat(Node $charset, Node $fields, Node $lines): FileFormat

Lowers the text file format of INTO OUTFILE: the nodes of opt_load_data_charset, opt_field_term and opt_line_term.

Parameters

$charsetNode
$fieldsNode
$linesNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 5
public function deleteTargets(Node $list): list<QualifiedName>

Lowers the table names of a multiple-table DELETE or of a locking clause: a node of table_alias_ref_list.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function wildcards(Node $list): list<OptionalWords>

Tells for each table of a node of table_alias_ref_list whether it is written with .*.

Parameters

$listNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function rowValues(Node $values): list<Scalar>

Lowers the values of one row, each an expression or DEFAULT: a node of opt_values or values; an absent list is empty.

Parameters

$valuesNode

Returns

list<Scalar>

Throws

ImplementationGap When a production has no rule
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
Method calls 1
Type declarations 1