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

$loweringLoweringThe 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

$upsertNode

Returns

array{list<Upsert>, list<ResultColumn|Star|TableStar>}

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 3

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 1
Method calls 1
Type declarations 1