classCatalogs
final class Catalogs
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§
Lowers a statement of the family, such as CreateSchemaStmt, CreatedbStmt, CreateExtensionStmt or AlterDomainStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the nonterminal is not a statement of the familyCalled from 1
Calls 22
- class-const Catalogs::GROUPS() line 59
- static-call ImplementationGap::production() line 59
- method-call SchemaRule::statement() line 62
- new SchemaRule line 62
- method-call DatabaseRule::statement() line 63
- new DatabaseRule line 63
- method-call ExtensionRule::statement() line 64
- new ExtensionRule line 64
- method-call ForeignDataRule::statement() line 65
- new ForeignDataRule line 65
- method-call PublicationRule::statement() line 66
- new PublicationRule line 66
- method-call SubscriptionRule::statement() line 67
- new SubscriptionRule line 67
- method-call TextSearchRule::statement() line 68
- new TextSearchRule line 68
- method-call DomainRule::statement() line 69
- new DomainRule line 69
- method-call TypeRule::statement() line 70
- new TypeRule line 70
- method-call CastRule::statement() line 71
- new CastRule line 71
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
$labels | Node |
Returns
list<StringConstant>Throws
ImplementationGap When the production has no ruleTest cases 2
Calls 2
- static-call ImplementationGap::production() line 89
- method-call Lowering::items() line 92
Private surface 2§
Implementation details, listed for orientation only.
private const GROUPS = ['CreateSchemaStmt' => 'schema', 'CreatedbStmt' => 'database', 'AlterDatabaseSt…private Lowering $loweringTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.