final class RoutineLanguage
    implements RoutineOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

LANGUAGE name: the language the routine is written in.

The name is a word or a string constant; the server looks it up as written after decoding. Without the option, a routine with an SQL-standard body is in language sql. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Reading the language namedoctest
$option = new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineLanguage(new \SqlSemantics\Platform\PostgreSql\Statement\Option\Word(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('plpgsql')));
    $option->name() // => 'plpgsql'

Properties§

public Word|StringConstant $language

Methods§

public function __construct(public Word|StringConstant $language)

Parameters

$languageWord|StringConstantThe language name
public function name(): string

Answers the language name the server looks up.

Returns

string
Test cases 1
public function alterable(): bool

Tells that ALTER does not accept the option.

Returns

bool
Test cases 1
public function setting(): string

Answers language.

Returns

string
Test cases 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a name holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes LANGUAGE and the name.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 3