classRoutineLanguage
final class RoutineLanguage
implements Characteristic
uses Snapshot
Public API: explicitly declared with
@visibility public.The LANGUAGE characteristic of a stored routine: SQL, or from MySQL 8.1 the name of an external language.
Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html, https://dev.mysql.com/doc/refman/9.1/en/create-procedure.html.
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER FUNCTION f LANGUAGE SQL');
$alter->statement->characteristics[0]->external // => nullProperties§
public Name|null $external = nullMethods§
public function __construct(public Name|null $external = null)Parameters
$external | Name|null | The name of the external language; null for the keyword SQL |
public function render(Output $out): voidWrites LANGUAGE and the keyword SQL or the language name.
Parameters
$out | Output |
Test cases 1
Calls 3
- method-call Output::keyword() line 39
- method-call Output::name() line 43
- class-const NameUse::Identifier() line 43
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 3
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Routine\CharacteristicRule::characteristic() packages/sql-semantics-mysql/src/Lowering/Routine/CharacteristicRule.php:103
- new SqlSemantics\Platform\MySql\Lowering\Routine\CharacteristicRule::characteristic() packages/sql-semantics-mysql/src/Lowering/Routine/CharacteristicRule.php:104