Global

Type Definitions

BigQueryOptions :object

Properties:
Name Type Attributes Default Description
projectId string <optional>

The project ID from the Google Developer's Console, e.g. 'grape-spaceship-123'. We will also check the environment variable GCLOUD_PROJECT for your project ID. If your app is running in an environment which supports Application Default Credentials, your project ID will be detected automatically.

keyFilename string <optional>

Full path to the a .json, .pem, or .p12 key downloaded from the Google Developers Console. If you provide a path to a JSON file, the projectId option above is not necessary. NOTE: .pem and .p12 require you to specify the email option as well.

token string <optional>

An OAUTH access token. If provided, we will not manage fetching, re-using, and re-minting access tokens.

email string <optional>

Account email address. Required when using a .pem or .p12 keyFilename.

credentials object <optional>

Credentials object.

Properties
Name Type Attributes Description
client_email string <optional>
private_key string <optional>
autoRetry boolean <optional>
true

Automatically retry requests if the response is related to rate limits or certain intermittent server errors. We will exponentially backoff subsequent requests by default.

maxRetries number <optional>
3

Maximum number of automatic retries attempted before returning the error.

promise Constructor <optional>

Custom promise module to use instead of native Promises.

location string <optional>

The geographic location of all datasets and jobs referenced and created through the client.

scopes Array.<string> <optional>

Additional OAuth scopes to use in requests. For example, to access an external data source, you may need the https://www.googleapis.com/auth/drive.readonly scope.

apiEndpoint string <optional>

The API endpoint of the service used to make requests. Defaults to bigquery.googleapis.com.

Source:

ManualQueryResultsCallback(errnullable, rows, nextQuerynullable, apiResponse)

Parameters:
Name Type Attributes Description
err Error <nullable>

An error returned while making this request.

rows array

The results of the job.

nextQuery object <nullable>

A pre-made configuration object for your next request. This will be null if no additional results are available. If the query is not yet complete, you may get empty rows and non-null nextQuery that you should use for your next request.

apiResponse object

The full API response.

Source:

QueryResultsCallback(errnullable, rows)

Parameters:
Name Type Attributes Description
err Error <nullable>

An error returned while making this request.

rows array

The results of the job.

Source: