BigQuery/src/Table.php
public function insertRow(array $row, array $options = [])
    {
        $row = ['data' => $row];

        if (isset($options['insertId'])) {
            $row['insertId'] = $options['insertId'];
            unset($options['insertId']);
        }

        return $this->insertRows([$row], $options);
    }
public function insertRow(array $row, array $options = [])
    {
        $row = ['data' => $row];

        if (isset($options['insertId'])) {
            $row['insertId'] = $options['insertId'];
            unset($options['insertId']);
        }

        return $this->insertRows([$row], $options);
    }
public function insertRow ( array $ row , array $ options = [ ] ) { $ row = [ 'data' => $ row ] ; if ( isset ( $ options [ 'insertId' ] ) ) { $ row [ 'insertId' ] = $ options [ 'insertId' ] ; unset ( $ options [ 'insertId' ] ) ; } return $ this -> insertRows ( [ $ row ] , $ options ) ; }
Insert a record into the table without running a load job.

Please note that by default the library will not automatically retry this
call on your behalf unless an `insertId` is set.

Example:
```
$row = [
'city' => 'Detroit',
'state' => 'MI'
];

$insertResponse = $table->insertRow($row, [
'insertId' => '1'
]);

if (!$insertResponse->isSuccessful()) {
$row = $insertResponse->failedRows()[0];

print_r($row['rowData']);

foreach ($row['errors'] as $error) {
echo $error['reason'] . ': ' . $error['message'] . PHP_EOL;
}
}
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/bigquery/docs/reference/v2/tabledata/insertAll Tabledata insertAll API Documentation.
@see https://cloud.google.com/bigquery/streaming-data-into-bigquery Streaming data into BigQuery.

@param array $row Key/value set of data matching the table's schema.
@param array $options [optional] {
Please see
{@see Google\Cloud\BigQuery\Table::insertRows()} for the
other available configuration options.

@type string $insertId Used to
[ensure data consistency](https://cloud.google.com/bigquery/streaming-data-into-bigquery#dataconsistency).
}
@return InsertResponse
@throws \InvalidArgumentException
@codingStandardsIgnoreEnd
Insert a record into the table without running a load job .