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
Test cases 1
Calls 2

Test cases 2§

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 1

Relations§

Constant reads 1
Type declarations 1