src/Component.php
public function all($select, $values = array(), $fetch = 'row')
    {
        $rows = array();
        if ($stmt = $this->query($select, $values, $fetch)) {
            while ($row = $this->fetch($stmt)) {
                $rows[] = $row;
            }
            $this->close($stmt);
        }

        return $rows;
    }
public function all($select, $values = array(), $fetch = 'row')
    {
        $rows = array();
        if ($stmt = $this->query($select, $values, $fetch)) {
            while ($row = $this->fetch($stmt)) {
                $rows[] = $row;
            }
            $this->close($stmt);
        }

        return $rows;
    }
Get all of the selected rows from your query at once.

@param string|array $select A SELECT statement.
@param string|array $values The query parameters.
@param string       $fetch  How you would like your row.

@return array No false heads up here.  You either have rows, or you don't.

```php
foreach ($db->all('SELECT id, name, title FROM employees') as $row) {
list($id, $name, $title) = $row;
}
```