protected function getRecords()
    {
        $records = [];

        foreach ($this->query->get() as $row) {
            $record = [];
            foreach ($this->columns as $name => $handler) {
                $record[$name] = $handler($row);
            }
            $records[] = $record;
        }

        return $records;
    }