classUpsertRule
final class UpsertRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.
Lowers the upsert tail of an INSERT.
Rule: SQLITE-UPSERT-LOWER-001. Scope: upsert. The ON CONFLICT clauses keep their written order; the RETURNING clause ends the tail. Terminates: the chain of clauses is walked in a loop. Source: https://sqlite.org/lang_upsert.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
public function tail(Node $upsert): array{list<Upsert>, list<ResultColumn|Star|TableStar>}Lowers an upsert into its ON CONFLICT clauses and the RETURNING columns.
Parameters
$upsert | Node |
Returns
array{list<Upsert>, list<ResultColumn|Star|TableStar>}Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 3
- new ConflictTarget line 56
- new Upsert line 57
- static-call ImplementationGap::production() line 73
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
UpsertRuleTestcalls