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
| Name | Type(s) | Description |
|---|---|---|
$table | string | |
$indexName | string | |
$getInfo (optional) | bool |
Return value
bool array
WireDatabaseDialect methods and properties
API reference based on ProcessWire core version 3.0.275