enumIdentityGenerationStrategy
enum IdentityGenerationStrategy
How a database decides the next value of a numbered column.
Which one a column uses decides what the next value would have been, which is what a rewritten INSERT has to read back in place of the number the database never assigned.
Cases§
case MaxValuecase SequenceTest cases 19§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 18
ShadowIdentityAllocatorTest::testAllocateMissingLeavesAColumnTheStatementWroteAlonecallsShadowIdentityAllocatorTest::testAllocateSelectStartsAnswersTheFirstNumberTheQueryWouldTakecallsShadowIdentityAllocatorTest::testAllocateSelectStartsLeavesAColumnTheStatementWroteAlonecallsShadowIdentityAllocatorTest::testBeginProjectionDiscardsWhatAProjectionNeverCommittedcallsShadowIdentityAllocatorTest::testBeginProjectionStartsFromWhatWasCommittedcallsShadowIdentityAllocatorTest::testCommitProjectionBeginProjectionUncommittedPreparationDoesNotConsumeIdentitycallsShadowIdentityAllocatorTest::testExplicitIdentityDoesNotPreventOtherIdentitiesFromBeingAllocatedcallsShadowIdentityAllocatorTest::testGeneratedStateIsSeparatedByTableAndColumncallsShadowIdentityAllocatorTest::testMaxValueIdentityAdvancesPastRowsAndSurvivesDeletioncallsShadowIdentityAllocatorTest::testMaxValueUsesOnlyIntegerRowscallsShadowIdentityAllocatorTest::testNextValueReadsAMaxValueColumnOffTheRowsEveryTimecallsShadowIdentityAllocatorTest::testNextValueStartsASequenceAtOneHoweverManyRowsAreTherecallsShadowIdentityAllocatorTest::testSelectAllocationContinuesFromMaterializedRowscallsShadowIdentityAllocatorTest::testSelectAllocationSkipsProvidedIdentityColumnscallsShadowIdentityAllocatorTest::testSelectAllocationUsesStrategyStateAndAllColumnscallsShadowIdentityAllocatorTest::testSequenceIdentityDoesNotUseExplicitRowMaximumcallsTableDefinitionTest::testKeepsEverythingATableDeclaresAboutItselfcallsShadowApplicationTest::testLastInsertIdOfAnswersTheIdentityTheTableSaysIsNumberedcalls
Relations§
Constant reads 2
- class-const packages/ztd-query-core/src/Compatibility/ClassAliases.php packages/ztd-query-core/src/Compatibility/ClassAliases.php:36
- class-const ZtdQuery\Rewrite\ShadowIdentityAllocator::nextValue() packages/ztd-query-core/src/Rewrite/ShadowIdentityAllocator.php:124