classUtilityCommands
final class UtilityCommands
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§
Lowers a statement of the family, such as TransactionStmt, TransactionStmtLegacy, VariableSetStmt, ExplainStmt or VacuumStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the nonterminal is not a statement of the familyCalled from 2
Calls 10
- class-const UtilityCommands::GROUPS() line 51
- static-call ImplementationGap::production() line 51
- method-call TransactionRule::statement() line 54
- new TransactionRule line 54
- method-call SettingRule::statement() line 55
- new SettingRule line 55
- method-call MaintenanceRule::statement() line 56
- new MaintenanceRule line 56
- method-call CommandRule::statement() line 57
- new CommandRule line 57
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
$clause | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call SettingRule::clause() line 71
- new SettingRule line 71
Private surface 2§
Implementation details, listed for orientation only.
private const GROUPS = ['TransactionStmt' => 'transaction', 'TransactionStmtLegacy' => 'transaction', …private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
UtilityCommandsTestcalls