src/DB/Drivers/PDOSqlDriver.php
public function getAll($table, $fields, $where = '', $order = 1, $group_by = 1, $limit = 0)
    {
        $data = $this->select($fields)->from($table);
        if ($where) {
            $data->where($where);
        }

        if (1 !== $group_by) {
            $data->groupBy($group_by);
        }

        if (1 !== $order) {
            $data->orderBy($order);
        }

        if (0 !== $limit) {
            $data->limit($limit);
        }

        return $data->stmt()->fetchAll(PDO::FETCH_ASSOC);
    }
public function getAll($table, $fields, $where = '', $order = 1, $group_by = 1, $limit = 0)
    {
        $data = $this->select($fields)->from($table);
        if ($where) {
            $data->where($where);
        }

        if (1 !== $group_by) {
            $data->groupBy($group_by);
        }

        if (1 !== $order) {
            $data->orderBy($order);
        }

        if (0 !== $limit) {
            $data->limit($limit);
        }

        return $data->stmt()->fetchAll(PDO::FETCH_ASSOC);
    }
获取表中所有数据

@param string $table
@param string $fields
@param string|array $where
@param int|string $order
@param int|string $group_by
@param int|string $limit 0 表示无限制
@return mixed
@throws CoreException