final class ExtensionRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql\Lowering". Code outside that scope must not name this declaration.

Lowers the extension, language and access method commands.

Rule: PG-EXTENSION-LOWER-001. Scope: CreateExtensionStmt, create_extension_opt_list, create_extension_opt_item, AlterExtensionStmt, alter_extension_opt_list, alter_extension_opt_item, AlterExtensionContentsStmt, CreatePLangStmt, handler_name, opt_inline_handler, validator_clause, opt_validator, CreateAmStmt, am_type. Constructors: CreateExtension, ExtensionSchema, ExtensionVersion, UpdateExtension, AlterExtensionContents, CreateLanguage, CreateLanguageExtension, FunctionClause, CreateAccessMethod. The objects of ALTER EXTENSION use the object references of the routine family. Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-createextension.html, https://www.postgresql.org/docs/17/sql-alterextension.html, https://www.postgresql.org/docs/17/sql-createlanguage.html, https://www.postgresql.org/docs/17/sql-create-access-method.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function versions(Node $list): list<Word|StringConstant>

Lowers alter_extension_opt_list: the versions written after TO.

Parameters

$listNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 1
Called from 1
Calls 2
public function inline(Node $handler): ?DottedName

Private surface 2§

Implementation details, listed for orientation only.

private const KINDS = ['AlterExtensionContentsStmt: ALTER EXTENSION name add_drop AGGREGATE aggregate…
private Lowering $lowering

Test cases 6§

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

Dedicated tests 6

Relations§

Instantiated in 2
Method calls 2