classPreparedRule
final class PreparedRule
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§
Lowers PrepareStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no rule, or the statement prepared is not a queryCalled from 1
Calls 4
- static-call ImplementationGap::production() line 49
- new PreparedParameters line 54
- static-call ImplementationGap::rule() line 60
- new Prepare line 63
Lowers ExecuteStmt: EXECUTE, or CREATE TABLE AS EXECUTE through the table family.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 3
- new Execute line 76
- method-call PreparedRule::parameters() line 76
- static-call ImplementationGap::production() line 85
public function parameters(Node $clause): list<Scalar>Lowers execute_param_clause; no clause is an empty list.
Parameters
$clause | Node |
Returns
list<Scalar>Throws
ImplementationGap When the production has no ruleCalled from 3
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::execute() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:76
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::execute() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:79
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\PreparedRule::execute() packages/sql-semantics-postgres/src/Lowering/Manipulation/PreparedRule.php:83
Calls 1
- static-call ImplementationGap::production() line 103
public function deallocate(Node $statement): DeallocateLowers DeallocateStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 2
- new Deallocate line 117
- static-call ImplementationGap::production() line 120
Private surface 1§
Implementation details, listed for orientation only.
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
PreparedRuleTestcalls
Relations§
Instantiated in 3
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:45
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:46
- new SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:47
Method calls 3
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:45
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:46
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::statement() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:47