final class Catalogs
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

The entry point of the catalog family: schemas, databases, tablespaces, extensions, foreign data, languages, access methods, publications, subscriptions, text search, collations, conversions, domains, types, casts and transforms.

Rule: PG-CATALOG-001. Scope: the statement nonterminals of the family (php .agent/pg-families.php Catalog), each handed to the rule of its group, and opt_enum_val_list, enum_val_list. Termination: each statement is lowered by one rule; lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-commands.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function enumValues(Node $labels): list<StringConstant>

Lowers opt_enum_val_list: the labels of an enum type in order; no label is an empty list.

Parameters

$labelsNode

Returns

Throws

ImplementationGap When the production has no rule
Test cases 2
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private const GROUPS = ['CreateSchemaStmt' => 'schema', 'CreatedbStmt' => 'database', 'AlterDatabaseSt…
private Lowering $lowering

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 1
Method calls 1
Type declarations 1