Methods |
public
|
__construct(
string $name,
string[] $columns,
bool $isUnique = false,
bool $isPrimary = false,
string[] $flags = [],
mixed[] $options = [],
)
|
#
|
public
|
getColumns()
{@inheritdoc}
|
#
|
public
|
getQuotedColumns(AbstractPlatform $platform)
{@inheritdoc}
Parameters
$platform |
The platform to use for quotation.
|
Implements
|
#
|
public
|
getUnquotedColumns(): string[]
|
#
|
public
|
isSimpleIndex(): bool
Is the index neither unique nor primary key?
Is the index neither unique nor primary key?
|
#
|
public
|
isUnique(): bool
|
#
|
public
|
isPrimary(): bool
|
#
|
public
|
hasColumnAtPosition(string $name, int $pos = 0): bool
|
#
|
public
|
spansColumns(string[] $columnNames): bool
Checks if this index exactly spans the given column names in the correct order.
Checks if this index exactly spans the given column names in the correct order.
|
#
|
public
|
isFullfilledBy(Index $other): bool
Checks if the other index already fulfills all the indexing and constraint needs of the current one.
Checks if the other index already fulfills all the indexing and constraint needs of the current one.
|
#
|
public
|
overrules(Index $other): bool
Detects if the other index is a non-unique, non primary index that can be overwritten by this one.
Detects if the other index is a non-unique, non primary index that can be overwritten by this one.
|
#
|
public
|
getFlags(): string[]
Returns platform specific flags for indexes.
Returns platform specific flags for indexes.
|
#
|
public
|
addFlag(string $flag): Index
Adds Flag for an index that translates to platform specific handling.
Adds Flag for an index that translates to platform specific handling.
|
#
|
public
|
hasFlag(string $flag): bool
Does this index have a specific flag?
Does this index have a specific flag?
|
#
|
public
|
removeFlag(string $flag): void
Removes a flag.
|
#
|
public
|
hasOption(string $name): bool
|
#
|
public
|
getOption(string $name): mixed
|
#
|
public
|
getOptions(): mixed[]
|
#
|