classPartialUniqueIndex
final class PartialUniqueIndex
A unique index whose candidate rows are restricted by a SQL predicate.
Properties§
public non-empty-list<string> $columnspublic string $namepublic string $predicateMethods§
public function __construct(
public string $name,
list<string> $columns,
public string $predicate,
)Parameters
$name | string | |
$columns | list<string> | |
$predicate | string |
Throws
InvalidDefinitionException When the index is missing a name, its columns, or its predicateCalls 2
- function-call
trimline 29 - new InvalidDefinitionException line 30
Test cases 10§
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 9
RewriteCheck::verifycallsInsertTransformerTest::testProjectsPartialIndexPredicateForBothCandidateRowscallsIndexDefinitionsTest::testKeepsSqlAndPartialMetadataSeparatecallsTableDefinitionTest::testWithPartialUniqueIndexPreservesSchemaAndIndexesByNamecallsPgSqlMutationResolverTest::testResolveUpsertUsesPartialIndexPredicateForConflictDetectioncallsPgSqlConflictTargetTest::testRegularUniqueIndexTakesPrecedenceOverPartialIndexInferencecallsPgSqlConflictTargetTest::testRejectsAmbiguousPartialIndexescallsPgSqlConflictTargetTest::testRejectsPartialIndexWithDifferentColumnAritycallsPgSqlConflictTargetTest::testResolvesPartialIndexWithOrderIndependentColumnscalls