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

Lowers interval units.

Rule: MYSQL-INTERVAL-UNIT-001. Scope: interval, interval_time_stamp. The SQL_TSI_ spellings are the same keywords to the lexer. Constructs: IntervalUnit. Terminates: one unit production is forwarded at most once. Source: https://dev.mysql.com/doc/refman/8.4/en/expressions.html#temporal-intervals. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function unit(Node $unit): IntervalUnit

Private surface 2§

Implementation details, listed for orientation only.

private const UNITS = ['interval: DAY_HOUR_SYM' => \SqlSemantics\Platform\MySql\Statement\Expression\…
private Lowering $lowering

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