enumConflictResolution
enum ConflictResolution: string
Public API: explicitly declared with
@visibility public.The conflict resolution algorithms of SQLite.
Source: https://sqlite.org/lang_conflict.html.
$insert = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('INSERT OR IGNORE INTO t VALUES (1)');
$insert->statement->into->resolution // => \SqlSemantics\Platform\Sqlite\Statement\Mutation\ConflictResolution::IgnoreCases§
case Rollback = 'ROLLBACK'case Abort = 'ABORT'case Fail = 'FAIL'case Ignore = 'IGNORE'case Replace = 'REPLACE'Test cases 19§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 17
ConflictRuleTest::testOnConflictLowersTheAlgorithmOfAConstraintAndNullWithoutTheClausecallsConflictRuleTest::testOrConflictLowersTheAlgorithmAfterOrAndNullWithoutTheClausecallsConflictRuleTest::testResolutionLowersEachOfTheFiveAlgorithmscallsMutationRuleTest::testDefaultsLowersAnInsertOfDefaultValuesWithItsReturningcallsMutationRuleTest::testIntoLowersAnInsertWithItsOrClauseAndAReplacecallsMutationRuleTest::testUpdateLowersEveryClauseInGrammarOrdercallsTriggerRuleTest::testStepLowersAnInsertWithItsUpsertAndADeleteWithItsPredicatecallsTriggerRuleTest::testStepLowersAnUpdateWithEveryClausecallsInsertIntoTest::testRejectsReplaceWithAConflictResolutioncallsInsertIntoTest::testRenderWritesTheVerbTheResolutionTheTargetAndTheColumnscallsColumnPrimaryKeyTest::testRenderKeepsTheSortOrderTheConflictResolutionAndAutoincrementcallsColumnUniqueTest::testRenderKeepsTheConflictResolutioncallsNotNullTest::testRenderKeepsTheConflictResolutioncallsNullAllowedTest::testRenderKeepsTheConflictResolutioncallsTableCheckTest::testRenderKeepsTheIgnoredConflictResolutioncallsTablePrimaryKeyTest::testRenderWritesAutoincrementInsideTheParenthesescallsTableUniqueTest::testRenderKeepsTheTermsAndTheConflictResolutioncalls
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule::resolution() packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:42
- class-const SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule::resolution() packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:43
- class-const SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule::raised() packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:58
- class-const SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule::raised() packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:59
- class-const SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule::raised() packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:60
Type declarations 13
- type SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:36
- type SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:53
- type SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:70
- type SqlSemantics\Platform\Sqlite\Lowering\Leaf\ConflictRule packages/sql-semantics-sqlite/src/Lowering/Leaf/ConflictRule.php:86
- type SqlSemantics\Platform\Sqlite\Statement\Mutation\InsertInto packages/sql-semantics-sqlite/src/Statement/Mutation/InsertInto.php:49
- type SqlSemantics\Platform\Sqlite\Statement\Mutation\Update packages/sql-semantics-sqlite/src/Statement/Mutation/Update.php:73
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Column\ColumnPrimaryKey packages/sql-semantics-sqlite/src/Statement/Schema/Column/ColumnPrimaryKey.php:42
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Column\ColumnUnique packages/sql-semantics-sqlite/src/Statement/Schema/Column/ColumnUnique.php:34
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Column\NotNull packages/sql-semantics-sqlite/src/Statement/Schema/Column/NotNull.php:33
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Column\NullAllowed packages/sql-semantics-sqlite/src/Statement/Schema/Column/NullAllowed.php:34
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Table\TableCheck packages/sql-semantics-sqlite/src/Statement/Schema/Table/TableCheck.php:42
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Table\TablePrimaryKey packages/sql-semantics-sqlite/src/Statement/Schema/Table/TablePrimaryKey.php:54
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Table\TableUnique packages/sql-semantics-sqlite/src/Statement/Schema/Table/TableUnique.php:49