classDoLanguage
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("DO LANGUAGE plpgsql 'BEGIN END'");
$operation->statement->items[0]->name() // => 'plpgsql'Properties§
public Word|StringConstant $languageMethods§
public function __construct(public Word|StringConstant $language)Parameters
$language | Word|StringConstant | The language name |
public function name(): stringAnswers the language name as the server receives it.
Returns
stringTest cases 1
public function render(Output $out): voidTest 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
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::__construct() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:52
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::language() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:83
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:100