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.

Reading the language of a routinedoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER FUNCTION f LANGUAGE SQL');
    $alter->statement->characteristics[0]->external // => null

Properties§

public Name|null $external = null

Methods§

public function __construct(public Name|null $external = null)

Parameters

$externalName|nullThe name of the external language; null for the keyword SQL
public function render(Output $out): void

Writes LANGUAGE and the keyword SQL or the language name.

Parameters

$outOutput
Test cases 1
Calls 3

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