classShowCreateFunction
final class ShowCreateFunction
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW CREATE FUNCTION: the statement that creates a stored function.
Rule: MYSQL-SHOW-CREATEFUNCTION-001. Stored programs are not part of a context, so the name is not resolved. The columns are those of the layout of MYSQL-SHOW-ROWS-001. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-create-function.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW CREATE FUNCTION shop.p');
[$show->statement->name->schema?->value, $show->toString()] // => ['shop', 'SHOW CREATE FUNCTION shop.p']Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The name with its optional database |
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 3
- method-call ShowFacts::rows() line 46
- new ShowFacts line 46
- class-const Report::CreateFunction() line 46
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 54
- method-call Output::name() line 56
- class-const NameUse::Qualifier() line 56
- class-const NameUse::Routine() line 58
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 2
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyObjectRule::schema() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:136
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ObjectRule::definition() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ObjectRule.php:109