@google-cloud/bigquery
Advanced tools
Comparing version 7.8.0 to 7.9.0
@@ -23,2 +23,3 @@ /*! | ||
import { Table, TableField, TableSchema, TableRow, JobCallback, JobResponse, RowMetadata } from './table'; | ||
import { RetryOptions } from '@google-cloud/common/build/src/util'; | ||
import bigquery from './types'; | ||
@@ -131,2 +132,4 @@ import { setLogFunction } from './logger'; | ||
* Defaults to `true`. | ||
* | ||
* @deprecated Use retryOptions. | ||
*/ | ||
@@ -139,5 +142,21 @@ autoRetry?: boolean; | ||
* Defaults to 3. | ||
* | ||
* @deprecated Use retryOptions. | ||
*/ | ||
maxRetries?: number; | ||
/** | ||
* Customize retry configuration for all requests in the SDK. | ||
* By default, a request is retried if the response is related to rate limits | ||
* or certain intermittent server errors. | ||
* We will exponentially backoff subsequent requests by default. | ||
* | ||
* More on the default retry predicate on the `shouldRetryRequest` method: | ||
* https://github.com/googleapis/nodejs-common/blob/main/src/util.ts | ||
* | ||
* Defaults: | ||
* - retryOptions.autoRetry: true | ||
* - retryOptions.maxRetries: 3 | ||
*/ | ||
retryOptions?: RetryOptions; | ||
/** | ||
* The geographic location of all datasets and | ||
@@ -144,0 +163,0 @@ * jobs referenced and created through the client. |
@@ -363,3 +363,7 @@ "use strict"; | ||
const timeoutOverride = typeof qs.timeoutMs === 'number' ? qs.timeoutMs : false; | ||
if (options._cachedRows) { | ||
const cachedRows = options._cachedRows; | ||
const cachedResponse = options._cachedResponse; | ||
delete options._cachedRows; | ||
delete options._cachedResponse; | ||
if (cachedRows) { | ||
let nextQuery = null; | ||
@@ -370,6 +374,5 @@ if (options.pageToken) { | ||
}); | ||
delete nextQuery._cachedRows; | ||
delete nextQuery._cachedResponse; | ||
} | ||
callback(null, options._cachedRows, nextQuery, options._cachedResponse); | ||
cachedResponse === null || cachedResponse === void 0 ? true : delete cachedResponse.rows; | ||
callback(null, cachedRows, nextQuery, cachedResponse); | ||
return; | ||
@@ -412,2 +415,3 @@ } | ||
} | ||
delete resp.rows; | ||
callback(null, rows, nextQuery, resp); | ||
@@ -414,0 +418,0 @@ }); |
{ | ||
"name": "@google-cloud/bigquery", | ||
"description": "Google BigQuery Client Library for Node.js", | ||
"version": "7.8.0", | ||
"version": "7.9.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google LLC", |
@@ -166,2 +166,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
| Query Params Timestamps | [source code](https://github.com/googleapis/nodejs-bigquery/blob/main/samples/queryParamsTimestamps.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-bigquery&page=editor&open_in_editor=samples/queryParamsTimestamps.js,samples/README.md) | | ||
| Query Short Mode | [source code](https://github.com/googleapis/nodejs-bigquery/blob/main/samples/queryShortMode.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-bigquery&page=editor&open_in_editor=samples/queryShortMode.js,samples/README.md) | | ||
| Query Stack Overflow | [source code](https://github.com/googleapis/nodejs-bigquery/blob/main/samples/queryStackOverflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-bigquery&page=editor&open_in_editor=samples/queryStackOverflow.js,samples/README.md) | | ||
@@ -168,0 +169,0 @@ | Quickstart | [source code](https://github.com/googleapis/nodejs-bigquery/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-bigquery&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
745881
15318
256