src/Service/DB/Table.php
public function getIndexesOfColumn($column_name)
    {
        $result = [];

        foreach ($this->getIndexes() as $index) {
            if (in_array($column_name, $index['columns'])) {
                $result[] = $index;
            }
        }

        return $result;
    }
public function getIndexesOfColumn($column_name)
    {
        $result = [];

        foreach ($this->getIndexes() as $index) {
            if (in_array($column_name, $index['columns'])) {
                $result[] = $index;
            }
        }

        return $result;
    }
获得指定字段上的索引.

@param string $column_name

@return array