src/mako/database/query/Query.php
protected function fetchYield(...$fetchMode): Generator
	{
		$query = $this->compiler->select();

		yield from $this->connection->yield($query['sql'], $query['params'], ...$fetchMode);
	}
protected function fetchYield(...$fetchMode): Generator
	{
		$query = $this->compiler->select();

		yield from $this->connection->yield($query['sql'], $query['params'], ...$fetchMode);
	}
protected function fetchYield ( ... $ fetchMode ) : Generator { $ query = $ this -> compiler -> select ( ) ; yield from $ this -> connection -> yield ( $ query [ 'sql' ] , $ query [ 'params' ] , ... $ fetchMode ) ; }
Executes a SELECT query and returns a generator that lets you iterate over the results.

@param  mixed      ...$fetchMode Fetch mode
@return \Generator
Executes a SELECT query and returns a generator that lets you iterate over the results .