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

Lowers PREPARE, EXECUTE and DEALLOCATE.

Rule: PG-PREPARED-LOWER-001. Scope: PrepareStmt, prep_type_clause, ExecuteStmt, execute_param_clause, DeallocateStmt. Constructors: Prepare, PreparedParameters, Execute, Deallocate; CREATE TABLE AS EXECUTE is built by the table family around the Execute. PREPARE after DEALLOCATE is a noise word. Source: https://www.postgresql.org/docs/17/sql-prepare.html, https://www.postgresql.org/docs/17/sql-execute.html, https://www.postgresql.org/docs/17/sql-deallocate.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function prepare(Node $statement): Prepare

Lowers PrepareStmt.

Parameters

$statementNode

Returns

Throws

ImplementationGap When the production has no rule, or the statement prepared is not a query
Called from 1
Calls 4
public function execute(Node $statement): Statement

Lowers ExecuteStmt: EXECUTE, or CREATE TABLE AS EXECUTE through the table family.

Parameters

$statementNode

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 3
public function deallocate(Node $statement): Deallocate

Private surface 1§

Implementation details, listed for orientation only.

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 3
Method calls 3