classManipulations
final class Manipulations
The entry point of the manipulation family: INSERT, UPDATE, DELETE, MERGE, COPY, prepared statements and cursors.
Rule: PG-MANIPULATION-001. Scope: PreparableStmt and the statements of the family, each lowered by the rule of its nonterminal (PG-INSERT-LOWER-001, PG-CHANGE-LOWER-001, PG-MERGE-LOWER-001, PG-COPY-LOWER-001, PG-PREPARED-LOWER-001, PG-CURSOR-LOWER-001). Source: https://www.postgresql.org/docs/17/sql-commands.html. Status: Implemented.
Methods§
Lowers a statement of the family: InsertStmt, UpdateStmt, DeleteStmt, MergeStmt, CopyStmt, PrepareStmt, ExecuteStmt, DeallocateStmt, DeclareCursorStmt, FetchStmt or ClosePortalStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the node is no statement of the familyCalled from 2
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Lowering::statement() packages/sql-semantics-postgres/src/Lowering/Lowering.php:242
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\Manipulations::preparable() packages/sql-semantics-postgres/src/Lowering/Manipulation/Manipulations.php:66
Calls 18
- method-call InsertRule::insert() line 40
- new InsertRule line 40
- method-call ChangeRule::update() line 41
- new ChangeRule line 41
- method-call ChangeRule::delete() line 42
- method-call MergeRule::merge() line 43
- new MergeRule line 43
- method-call CopyRule::copy() line 44
- new CopyRule line 44
- method-call PreparedRule::prepare() line 45
- new PreparedRule line 45
- method-call PreparedRule::execute() line 46
- method-call PreparedRule::deallocate() line 47
- method-call CursorRule::declare() line 48
- new CursorRule line 48
- method-call CursorRule::fetch() line 49
- method-call CursorRule::close() line 50
- static-call ImplementationGap::rule() line 51
Lowers PreparableStmt: the statement a PREPARE, a COPY or a common table expression runs; a data-modifying statement is also a query, whose rows are its RETURNING list.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call Manipulations::statement() line 66
- static-call ImplementationGap::production() line 67
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
ManipulationsTestcalls