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

Lowers CREATE EVENT and ALTER EVENT.

Rule: MYSQL-EVENT-LOWERING-001. Scope: event_tail, ev_schedule_time, ev_starts, ev_ends, opt_ev_on_completion, ev_on_completion, opt_ev_status, opt_ev_comment, ev_alter_on_schedule_completion, opt_ev_rename_to, opt_ev_sql_stmt, alter_event_stmt and the alter alternative of events (5.6, 5.7). The statement of the event is lowered by MYSQL-PROGRAM-STATEMENT-LOWERING-001. Constructs: CreateEvent, AlterEvent, OnceSchedule, RecurringSchedule. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/create-event.html, https://dev.mysql.com/doc/refman/8.4/en/alter-event.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function bound(Node $clause): ?Scalar
public function status(Node $clause): ?EventStatus

Private surface 5§

Implementation details, listed for orientation only.

private const TAILS = ['event_tail: remember_name EVENT_SYM opt_if_not_exists sp_name ON SCHEDULE_SYM…
private const ALTERS = ['alter: ALTER definer_opt EVENT_SYM sp_name ev_alter_on_schedule_completion op…
private const STATUSES = ['opt_ev_status:' => null, 'opt_ev_status: ENABLE_SYM' => \SqlSemantics\Platfor…
private const COMPLETIONS = ['ev_on_completion: ON COMPLETION_SYM PRESERVE_SYM' => \SqlSemantics\Platform\M…
private Lowering $lowering

Test cases 7§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 7

Relations§

Instantiated in 2
Method calls 2