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

Splits CREATE of a view, trigger, stored routine, loadable function or event by the kind of object.

Rule: MYSQL-DEFINITION-TAILS-001. Scope: view_or_trigger_or_sp_or_event, definer_tail, no_definer_tail. The DEFINER clause is lowered here and handed, with the tail that names the object, to the family of that object: a view to the table definition family, everything else to the stored program family. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/create-view.html, https://dev.mysql.com/doc/refman/8.4/en/stored-objects-security.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function create(Node $definition): Statement

Lowers the object definition that follows CREATE.

Parameters

$definitionNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 3

Private surface 2§

Implementation details, listed for orientation only.

private const TAILS = ['definer_tail: view_tail' => true, 'definer_tail: trigger_tail' => false, 'def…
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