classEventClauses
final class EventClauses
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
Writes the clauses CREATE EVENT and ALTER EVENT share: ON COMPLETION, the status and COMMENT.
Rule: MYSQL-EVENT-CLAUSES-001. Each clause is written with the keywords the grammar reads it from; DISABLE ON SLAVE and DISABLE ON REPLICA keep their own spelling. Terminates: constant work. Source: https://dev.mysql.com/doc/refman/8.4/en/create-event.html. Status: Implemented.
Methods§
public function write(
Output $out,
?Completion $completion,
?EventStatus $status,
?Text $comment,
): voidWrites the clauses that are present, in grammar order.
Parameters
$out | Output | |
$completion | ?Completion | |
$status | ?EventStatus | |
$comment | ?Text |
Test cases 2
Called from 3
- method-call SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:96
- method-call SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:101
- method-call SqlSemantics\Platform\MySql\Statement\Routine\CreateEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/CreateEvent.php:96
Calls 7
- class-const Completion::Preserve() line 32
- method-call Output::keyword() line 32
- class-const Completion::NotPreserve() line 33
- class-const EventStatus::Enable() line 37
- class-const EventStatus::Disable() line 38
- class-const EventStatus::DisableOnSlave() line 39
- class-const EventStatus::DisableOnReplica() line 40
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 3
- new SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:96
- new SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:101
- new SqlSemantics\Platform\MySql\Statement\Routine\CreateEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/CreateEvent.php:96
Method calls 3
- method-call SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:96
- method-call SqlSemantics\Platform\MySql\Statement\Routine\AlterEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/AlterEvent.php:101
- method-call SqlSemantics\Platform\MySql\Statement\Routine\CreateEvent::render() packages/sql-semantics-mysql/src/Statement/Routine/CreateEvent.php:96