final class PartialUniqueIndex

A unique index whose candidate rows are restricted by a SQL predicate.

Properties§

public non-empty-list<string> $columns
public string $name
public string $predicate

Methods§

public function __construct(
    public string $name,
    list<string> $columns,
    public string $predicate,
)

Parameters

$namestring
$columnslist<string>
$predicatestring

Throws

InvalidDefinitionException When the index is missing a name, its columns, or its predicate
Calls 2

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

Relations§

Instantiated in 1
Type declarations 1