Amp\Mysql\ResultSet::fetchAll PHP Method

fetchAll() public method

public fetchAll ( )
    public function fetchAll()
    {
        return $this->genericFetchAll(function ($rows) {
            $names = array_column($this->result->columns, "name");
            return array_map(function ($row) use($names) {
                return array_combine($names, $row) + $row;
            }, $rows ?: []);
        });
    }