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

The entry point of the utility family: transactions, configuration, EXPLAIN, maintenance, locking, notification, CALL and DO.

Rule: PG-UTILITY-001. Scope: the statement nonterminals of the family (php .agent/pg-families.php Utility), each handed to the rule of its group, and SetResetClause, FunctionSetResetClause. 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 statement(Node $statement): Statement
public function setReset(Node $clause): Statement

Lowers SetResetClause or FunctionSetResetClause: a SET or RESET of a configuration parameter attached to a role, a database or a routine.

The result is the same structure the SET or RESET command has on its own; it renders as that command, which is how the clause is written.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When the production has no rule
Calls 2

Private surface 2§

Implementation details, listed for orientation only.

private const GROUPS = ['TransactionStmt' => 'transaction', 'TransactionStmtLegacy' => 'transaction', …
private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 2
Type declarations 1