$database→getIndexes()
Get all indexes from given table
By default it returns an array of index names. Specify true for the verbose option to get index name, type and columns (array) for each index.
Available since version 3.0.182.
Usage
// basic usage
$array = $database->getIndexes(string $table);
// usage with all arguments
$array = $database->getIndexes(string $table, $verbose = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$table | string | Name of table to get indexes for or |
$verbose (optional) | bool int string | Include array of verbose information for each? Default:false
|
Return value
array
$database methods and properties
API reference based on ProcessWire core version 3.0.252