src/Service/DB/Statement.php
public function getAll($column = null)
    {
        if (!$column) {
            return $this->fetchAll();
        }

        $rowset = [];
        while ($row = $this->fetch()) {
            $rowset[$row[$column]] = $row;
        }

        return $rowset;
    }
public function getAll($column = null)
    {
        if (!$column) {
            return $this->fetchAll();
        }

        $rowset = [];
        while ($row = $this->fetch()) {
            $rowset[$row[$column]] = $row;
        }

        return $rowset;
    }
返回所有的查询结果，允许以指定的字段内容为返回数组的key.

@param string $col

@return array