public project ( string $query, array $params, Closur\Closure $function ) : array | ||
$query | string | The SQL query to execute. |
$params | array | The parameters, if any. |
$function | Closur\Closure | The transformation function that is applied on each row. The function receives a single parameter, an array, that represents a row of the result set. |
return | array | The projected result of the query. |