BigQuery/src/BigQueryClient.php
public function startQuery(JobConfigurationInterface $query, array $options = [])
    {
        $config = $query->toArray();
        $response = $this->connection->insertJob($config + $options);

        return new Job(
            $this->connection,
            $config['jobReference']['jobId'],
            $this->projectId,
            $this->mapper,
            $response
        );
    }
public function startQuery(JobConfigurationInterface $query, array $options = [])
    {
        $config = $query->toArray();
        $response = $this->connection->insertJob($config + $options);

        return new Job(
            $this->connection,
            $config['jobReference']['jobId'],
            $this->projectId,
            $this->mapper,
            $response
        );
    }
public function startQuery ( JobConfigurationInterface $ query , array $ options = [ ] ) { $ config = $ query -> toArray ( ) ; $ response = $ this -> connection -> insertJob ( $ config + $ options ) ; return new Job ( $ this -> connection , $ config [ 'jobReference' ] [ 'jobId' ] , $ this -> projectId , $ this -> mapper , $ response ) ; }
Runs a BigQuery SQL query in an asynchronous fashion.

Queries constructed using
[standard SQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/)
can take advantage of parameterization. For more details and examples
please see {@see Google\Cloud\BigQuery\BigQueryClient::runQuery()}.

Example:
```
$queryJobConfig = $bigQuery->query(
'SELECT commit FROM `bigquery-public-data.github_repos.commits` LIMIT 100'
);
$job = $bigQuery->startQuery($queryJobConfig);
$queryResults = $job->queryResults();

foreach ($queryResults as $row) {
echo $row['commit'];
}
```

@see https://cloud.google.com/bigquery/docs/reference/v2/jobs/insert Jobs insert API documentation.

@param QueryJobConfiguration $query A BigQuery SQL query configuration.
@param array $options [optional] Configuration options.
@return Job
Runs a BigQuery SQL query in an asynchronous fashion .