classFormRule
final class FormRule
Lowers the bracketed, subquery and column-function forms of simple_expr.
Rule: MYSQL-SIMPLE-FORM-001. Scope: the simple_expr productions for a grouping ( expr ), a row ( expr , expr_list ) and ROW ( … ) (the keyword ROW is optional), a subquery ( subselect ) or row_subquery, EXISTS, the ODBC escape { ident expr }, DEFAULT ( col ), VALUES ( col ), the leading INTERVAL expr unit + expr and the JSON operators -> and ->>; every other production goes to MYSQL-CONSTRUCT-001. Constructs: Grouped, Row, ScalarSubquery, Exists, OdbcEscape, DefaultOfColumn, InsertedColumn, IntervalAddition, JsonExtraction. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/expressions.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers one of the forms.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleTest cases 2
Called from 1
Calls 13
- new Grouped line 60
- method-call Form::node() line 60
- new Row line 61
- class-const OptionalWords::Written() line 62
- new ScalarSubquery line 63
- new Exists line 65
- new OdbcEscape line 67
- new DefaultOfColumn line 68
- new InsertedColumn line 69
- new IntervalAddition line 70
- new JsonExtraction line 71
- method-call ConstructRule::lower() line 73
- new ConstructRule line 73
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.