classDefinitionTails
final class DefinitionTails
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
$lowering | Lowering | The lowering this rule belongs to |
Lowers the object definition that follows CREATE.
Parameters
$definition | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 3
- function-call
countline 53 - method-call DefinitionTails::tail() line 56
- static-call ImplementationGap::production() line 60
Hands the tail of a definition to the family of the object it names.
Returns
Throws
ImplementationGap When the production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Dispatch\DefinitionTails::create() packages/sql-semantics-mysql/src/Lowering/Dispatch/DefinitionTails.php:56
- method-call SqlSemantics\Platform\MySql\Lowering\Dispatch\DefinitionTails::create() packages/sql-semantics-mysql/src/Lowering/Dispatch/DefinitionTails.php:57
Calls 2
- class-const DefinitionTails::TAILS() line 72
- static-call ImplementationGap::production() line 72
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 $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DefinitionTailsTestcalls