classDmlRules
final class DmlRules
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 $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a data manipulation statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 18
- method-call Lowering::form() line 47
- method-call InsertRule::statement() line 50
- new InsertRule line 50
- method-call InsertRule::legacy() line 51
- method-call ChangeRule::update() line 52
- new ChangeRule line 52
- method-call ChangeRule::delete() line 53
- method-call ChangeRule::legacyDelete() line 54
- method-call LoadRule::statement() line 55
- new LoadRule line 55
- method-call HandlerRule::statement() line 56
- new HandlerRule line 56
- method-call InvocationRule::evaluation() line 57
- new InvocationRule line 57
- method-call InvocationRule::call() line 58
- method-call InvocationRule::import() line 59
- method-call InvocationRule::prepared() line 60
- static-call ImplementationGap::production() line 61
public function duplicateHandling(Node $duplicate): ?DuplicateHandlingLowers REPLACE or IGNORE before a query that fills a table: a node of opt_duplicate or
duplicate; neither is null.
Parameters
$duplicate | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalls 2
- method-call TargetRule::duplicates() line 73
- new TargetRule line 73
public function fileFormat(Node $charset, Node $fields, Node $lines): FileFormatLowers the text file format of INTO OUTFILE: the nodes of opt_load_data_charset, opt_field_term
and opt_line_term.
Returns
Throws
ImplementationGap When a production has no ruleCalls 5
- new FormatRule line 84
- new TextFileFormat line 86
- method-call FormatRule::charset() line 86
- method-call FormatRule::fields() line 86
- method-call FormatRule::lines() line 86
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
$list | Node |
Returns
list<QualifiedName>Throws
ImplementationGap When a production has no ruleCalls 2
- method-call TargetRule::tables() line 98
- new TargetRule line 98
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
$list | Node |
Returns
list<OptionalWords>Throws
ImplementationGap When a production has no ruleCalls 2
- method-call TargetRule::wildcards() line 109
- new TargetRule line 109
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
$values | Node |
Returns
list<Scalar>Throws
ImplementationGap When a production has no ruleCalls 2
- method-call ValueRule::row() line 121
- new ValueRule line 121
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DmlRulesTestcalls