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 69§
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 68
PgSqlRewriterTest::testNestedPartitionInsertAllocatesIdentityFromRootRowscallsShadowIdentityAllocatorTest::testAllocateMissingLeavesAColumnTheStatementWroteAlonecallsShadowIdentityAllocatorTest::testAllocateSelectStartsAnswersTheFirstNumberTheQueryWouldTakecallsShadowIdentityAllocatorTest::testAllocateSelectStartsLeavesAColumnTheStatementWroteAlonecallsShadowIdentityAllocatorTest::testBeginProjectionDiscardsWhatAProjectionNeverCommittedcallsShadowIdentityAllocatorTest::testBeginProjectionStartsFromWhatWasCommittedcallsShadowIdentityAllocatorTest::testCommitProjectionBeginProjectionUncommittedPreparationDoesNotConsumeIdentitycallsShadowIdentityAllocatorTest::testExplicitIdentityDoesNotPreventOtherIdentitiesFromBeingAllocatedcallsShadowIdentityAllocatorTest::testGeneratedStateIsSeparatedByTableAndColumncallsShadowIdentityAllocatorTest::testMaxValueIdentityAdvancesPastRowsAndSurvivesDeletioncallsShadowIdentityAllocatorTest::testMaxValueUsesOnlyIntegerRowscallsShadowIdentityAllocatorTest::testNextValueReadsAMaxValueColumnOffTheRowsEveryTimecallsShadowIdentityAllocatorTest::testNextValueStartsASequenceAtOneHoweverManyRowsAreTherecallsShadowIdentityAllocatorTest::testSelectAllocationContinuesFromMaterializedRowscallsShadowIdentityAllocatorTest::testSelectAllocationSkipsProvidedIdentityColumnscallsShadowIdentityAllocatorTest::testSelectAllocationUsesStrategyStateAndAllColumnscallsShadowIdentityAllocatorTest::testSequenceIdentityDoesNotUseExplicitRowMaximumcallsInsertProjectionBuilderTest::testBuildInsertSelectProjectsMultipleRowsWithGeneratedIdentitycallsInsertProjectionBuilderTest::testBuildSelectSourceProjectsAnInsertSelectSourcecallsInsertTargetTest::testFromStatementcallsResultProjectionTest::testBuildInsertRowSelectcallsResultProjectionTest::testBuildInsertSelectcallsResultProjectionTest::testBuildInsertSetSelectcallsSelectProjectionTest::testRenderProjectsGeneratedIdentityAndSourceColumnscallsValueProjectionTest::testRenderPreservesSequenceProgressAcrossCommittedProjectionscallsInsertTransformerTest::testCommitRewriteStateInsertAllocatesSerialValuesWithoutPhysicalSequencecallsInsertTransformerTest::testCommitRewriteStateTransformAllocatesMonotonicAutoIncrementValuescallsInsertTransformerTest::testCommitRewriteStateTransformAllocatesRowidValuesMonotonicallycallsInsertTransformerTest::testExplicitIdentityDoesNotConsumeGeneratedIdentitycallsInsertTransformerTest::testExplicitSetIdentityDoesNotConsumeGeneratedIdentitycallsInsertTransformerTest::testExplicitValuesIdentityDoesNotConsumeGeneratedIdentitycallsInsertTransformerTest::testInsertAllocatesSerialValueAfterExistingRowscallsInsertTransformerTest::testInsertSelectUsesExplicitTargetColumnsForProjectionAndIdentitycallsInsertTransformerTest::testParentAndPartitionShareSerialAllocationNamespacecallsInsertTransformerTest::testTransformAllocatesAfterExistingAutoIncrementRowscallsInsertTransformerTest::testTransformAllocatesRowidAfterExistingRowscallsInsertTransformerTest::testTransformInsertSelectAllocatesOnlyOmittedIdentityColumnscallsInsertTransformerTest::testTransformInsertSelectUsesExplicitTargetColumnsForProjectionAndIdentitycallsInsertTransformerTest::testUncommittedTransformDoesNotConsumeAutoIncrementValuecallsInsertTransformerTest::testUncommittedTransformDoesNotConsumeRowidValuecallsInsertTransformerTest::testUncommittedTransformDoesNotConsumeSerialValuecallsMergeTransformerTest::testDefaultIdentityValueIsGeneratedcallsMergeTransformerTest::testExplicitIdentityValueIsNotGeneratedcallsMergeTransformerTest::testProjectsDefaultValuesAndIdentitycallsMySqlTransformerTest::testCommitRewriteStatecallsPgSqlTransformerTest::testCommitRewriteStateCommitsGeneratedIdentityValuescallsReplaceTransformerTest::testCommitRewriteStatecallsSqliteTransformerTest::testCommitRewriteStateKeepsAllocatedIdentitiesAcrossProjectionscallsTableDefinitionBuilderTest::testAddDefinitionCollectsTypedColumnsAndPrimaryKeyscallsTableFieldsTest::testAppendEntryPreservesInlineAndTableConstraintscallsDefinitionBuilderTest::testAddColumncallsMySqlSchemaParserTest::testParseAutoIncrementIdentityStrategycallsPgSqlSchemaParserTest::testParseColumnWithGeneratedClausecallsPgSqlSchemaParserTest::testParseDetectsParenthesizedUppercaseSequenceDefaultcallsPgSqlSchemaParserTest::testParseDoesNotTreatSequenceAsOrdinaryDefaultcallsPgSqlSchemaParserTest::testParseSerialAndGeneratedIdentityStrategiescallsPgSqlSchemaParserTest::testParseSmallserialTypecallsSqliteSchemaParserTest::testDuplicatePrimaryKeySourcesStillProduceOneIdentitycallsSqliteSchemaParserTest::testNestedWithoutRowidTokensDoNotDisableIdentitycallsSqliteSchemaParserTest::testParseIntegerPrimaryKeyAsMaxValueIdentitycallsSqliteSchemaParserTest::testStrictTableRetainsColumnsTypesAndRowidIdentitycallsSqliteSchemaParserTest::testWithoutRowidTextInsideDefaultDoesNotDisableIdentitycallsTableDefinitionTest::testKeepsEverythingATableDeclaresAboutItselfcallsDropColumnResolverTest::testDefinitionWithoutColumnRemovesAllDependentMetadatacallsRenameResolverTest::testDefinitionWithRenamedColumnUpdatesKeyAndValueMapscallsShadowApplicationTest::testLastInsertIdOfAnswersTheIdentityTheTableSaysIsNumberedcallsSqliteMutationResolverTest::testAlterDropRemovesEveryColumnMetadataEntryAndBuildsMigrationProjectioncallsSqliteMutationResolverTest::testAlterRenameColumnMovesEveryMetadataEntryAndBuildsMigrationProjectioncalls
Relations§
Constant reads 4
- class-const ZtdQuery\Rewrite\ShadowIdentityAllocator::nextValue() packages/ztd-query-core/src/Rewrite/ShadowIdentityAllocator.php:124
- class-const ZtdQuery\Platform\MySql\Schema\DefinitionBuilder::addColumnOptions() packages/ztd-query-mysql/src/Schema/DefinitionBuilder.php:124
- class-const ZtdQuery\Platform\Postgres\Schema\Definition\TableFields::appendColumn() packages/ztd-query-postgres/src/Schema/Definition/TableFields.php:110
- class-const ZtdQuery\Platform\Sqlite\Schema\Create\TableDefinitionBuilder::build() packages/ztd-query-sqlite/src/Schema/Create/TableDefinitionBuilder.php:161