classConflictRule
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
$lowering | Lowering | The lowering this rule belongs to |
public function resolution(Node $resolvetype): ConflictResolutionLowers a resolvetype.
Parameters
$resolvetype | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 2
Calls 4
- method-call ConflictRule::raised() line 41
- class-const ConflictResolution::Ignore() line 42
- class-const ConflictResolution::Replace() line 43
- static-call ImplementationGap::production() line 44
public function raised(Node $raisetype): ConflictResolutionLowers a raisetype: the algorithms that RAISE can also name.
Parameters
$raisetype | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 4
- class-const ConflictResolution::Rollback() line 58
- class-const ConflictResolution::Abort() line 59
- class-const ConflictResolution::Fail() line 60
- static-call ImplementationGap::production() line 61
public function onConflict(Node $onconf): ?ConflictResolutionLowers an onconf: the algorithm of ON CONFLICT, or null when the clause is absent.
Parameters
$onconf | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call ConflictRule::resolution() line 76
- static-call ImplementationGap::production() line 77
public function orConflict(Node $orconf): ?ConflictResolutionLowers an orconf: the algorithm written after OR, or null when the clause is absent.
Parameters
$orconf | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call ConflictRule::resolution() line 92
- static-call ImplementationGap::production() line 93
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
ConflictRuleTestcalls