Dibi\Drivers\FirebirdDriver::getIndices PHP Метод

getIndices() публичный Метод

Returns list of indices in given table (the constraints are not listed).
public getIndices ( $table ) : array
Результат array
    public function getIndices($table)
    {
        $res = $this->query("\n\t\t\tSELECT TRIM(RDB\$INDEX_NAME)\n\t\t\tFROM RDB\$INDICES\n\t\t\tWHERE RDB\$RELATION_NAME = UPPER('{$table}')\n\t\t\t\tAND RDB\$UNIQUE_FLAG IS NULL\n\t\t\t\tAND RDB\$FOREIGN_KEY IS NULL;");
        $indices = [];
        while ($row = $res->fetch(FALSE)) {
            $indices[] = $row[0];
        }
        return $indices;
    }