src/PDO/SchemaPDOMssql.php
/**
     * Returns all unique indexes for the given table.
     *
     * Each array element is of the following structure:
     *
     * ```php
     * [
     *     'IndexName1' => ['col1' [, ...]],
     *     'IndexName2' => ['col2' [, ...]],
     * ]
     * ```
     *
     * @param TableSchema $table the table metadata.
     *
     * @throws Exception|InvalidConfigException|Throwable
     *
     * @return array all unique indexes for the given table.
     */
Returns all unique indexes for the given table.
Each array element is of the following structure.



@param TableSchema $table the table metadata.



@return array all unique indexes for the given table.
Returns all unique indexes for the given table . Each array element is of the following structure . @param TableSchema $table the table metadata . @return array all unique indexes for the given table .
public function findUniqueIndexes(TableSchema $table): array
    {
        $result = [];
        foreach ($this->findTableConstraints($table, 'UNIQUE') as $row) {
            $result[$row['index_name']][] = $row['field_name'];
        }
        return $result;
    }
public function findUniqueIndexes ( TableSchema $ table ) : array { $ result = [ ] ; foreach ( $ this -> findTableConstraints ( $ table , 'UNIQUE' ) as $ row ) { $ result [ $ row [ 'index_name' ] ] [ ] = $ row [ 'field_name' ] ; } return $ result ; }
Returns all unique indexes for the given table.
Returns all unique indexes for the given table .