classCandidateKeyMatch
final class CandidateKeyMatch
Reads what a row carries in a candidate key, and tells when another row repeats it.
A candidate key only identifies a row when the row actually carries every column of it and carries something in each. SQL says a key with a null part collides with nothing, not even with itself, so a row that is missing a column or holds null there has no key values at all — which is a different answer from having key values that happen to be empty.
Type Aliases§
Row = import from TableDefinitionMethods§
Reports whether a row repeats these key values.
Returns
bool True when the row carries every one of them identicallyTest cases 2
Test cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
CandidateKeyMatchTest::testCarriedByReportsARowRepeatingEveryValuecallsCandidateKeyMatchTest::testCarriedByReportsARowThatDiffersInOneOfThemcallsCandidateKeyMatchTest::testOfAnswersNothingForAKeyMadeOfNoColumnscallsCandidateKeyMatchTest::testOfAnswersNothingWhereTheRowLacksAKeyColumncallsCandidateKeyMatchTest::testOfAnswersNothingWhereTheRowLeavesAKeyColumnNullcallsCandidateKeyMatchTest::testOfReadsWhatTheRowCarriesInTheKeyColumnscalls
Other tests reaching this symbol 8
CandidateKeySetTestcallsConflictSearchTestcallsMutationImpactTestcallsInsertMutationTestcallsReplaceMutationTestcallsSynchronizeMutationTestcallsUpsertMutationTestcallsShadowApplicationTestcalls