final class DoLanguage
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

LANGUAGE name in DO: the procedural language the code is written in.

Mirrors the language element of PostgreSQL's DoStmt arguments. The name is a word or a string. Source: https://www.postgresql.org/docs/17/sql-do.html.

Reading the language of an anonymous blockdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("DO LANGUAGE plpgsql 'BEGIN END'");
    $operation->statement->items[0]->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 as the server receives it.

Returns

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

Writes the clause.

Parameters

$outOutput
Calls 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 3
Type declarations 1