src/mako/database/query/Query.php
protected function fetchAll(bool $returnResultSet, ...$fetchMode)
	{
		$query = $this->compiler->select();

		$results = $this->connection->all($query['sql'], $query['params'], ...$fetchMode);

		return $returnResultSet ? $this->createResultSet($results) : $results;
	}
protected function fetchAll(bool $returnResultSet, ...$fetchMode)
	{
		$query = $this->compiler->select();

		$results = $this->connection->all($query['sql'], $query['params'], ...$fetchMode);

		return $returnResultSet ? $this->createResultSet($results) : $results;
	}
protected function fetchAll ( bool $ returnResultSet , ... $ fetchMode ) { $ query = $ this -> compiler -> select ( ) ; $ results = $ this -> connection -> all ( $ query [ 'sql' ] , $ query [ 'params' ] , ... $ fetchMode ) ; return $ returnResultSet ? $ this -> createResultSet ( $ results ) : $ results ; }
Executes a SELECT query and returns an array containing all of the result set rows.

@param  bool                                 $returnResultSet Return result set?
@param  mixed                                ...$fetchMode    Fetch mode
@return array|\mako\database\query\ResultSet
Executes a SELECT query and returns an array containing all of the result set rows .