interfaceSchedule
interface Schedule
extends Node
Public API: explicitly declared with
@visibility public.When an event runs: once at a time, or repeatedly at an interval.
Source: https://dev.mysql.com/doc/refman/8.4/en/create-event.html.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE EVENT e ON SCHEDULE EVERY 1 DAY DO SELECT 1');
$create->statement->schedule instanceof \SqlSemantics\Platform\MySql\Statement\Routine\Event\RecurringSchedule // => trueMethods§
public function deriveSchedule(Derivation $derivation, Environment $environment): voidDerives the expressions of the schedule in the scope of the statement: inside a stored program they see its variables.
Parameters
$derivation | Derivation | |
$environment | Environment |
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§
Implemented by 2
Type declarations 4
- type SqlSemantics\Platform\MySql\Lowering\Routine\EventRule packages/sql-semantics-mysql/src/Lowering/Routine/EventRule.php:160
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:102
- type SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:61
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateEvent packages/sql-semantics-mysql/src/Statement/Routine/CreateEvent.php:60