final class ConflictRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Lowers conflict resolution clauses.

Rule: SQLITE-CONFLICT-LOWER-001. Scope: resolvetype, raisetype, onconf, orconf. Each names one of the five conflict resolution algorithms; an empty clause names none. Source: https://sqlite.org/lang_conflict.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function raised(Node $raisetype): ConflictResolution

Lowers a raisetype: the algorithms that RAISE can also name.

Parameters

$raisetypeNode

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 4
public function onConflict(Node $onconf): ?ConflictResolution

Lowers an onconf: the algorithm of ON CONFLICT, or null when the clause is absent.

Parameters

$onconfNode

Throws

ImplementationGap When the production has no rule
Calls 2
public function orConflict(Node $orconf): ?ConflictResolution

Lowers an orconf: the algorithm written after OR, or null when the clause is absent.

Parameters

$orconfNode

Throws

ImplementationGap When the production has no rule
Calls 2

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