WireDatabaseDialect::indexExists()

Does table have an index with given name?

Usage

// basic usage
$bool = $wireDatabaseDialect->indexExists(string $table, string $indexName);

// usage with all arguments
$bool = $wireDatabaseDialect->indexExists(string $table, string $indexName, bool $getInfo = false);

Arguments

NameType(s)Description
$tablestring
$indexNamestring
$getInfo (optional)bool

Return value

bool array


WireDatabaseDialect methods and properties

API reference based on ProcessWire core version 3.0.275