-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ext-drievr-bq): Fix pr suggestion, including typo, document layou…
…t and testing
- Loading branch information
Showing
8 changed files
with
80 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,34 +26,42 @@ Connect with your bigquery servers via the official [Node.js Driver](https://clo | |
3. Create a new profile in `profiles.yaml` or in your profile files. For example: | ||
:::info | ||
You can choose one from `keyFilename` or `credentials` to use. | ||
|
||
- Your service account must have the following permissions to successfully execute queries. | ||
- - BigQuery Data Viewer | ||
- - BigQuery Job User | ||
|
||
- You can choose one from `keyFilename` or `credentials` to use. | ||
|
||
For details, please refer to [here](https://cloud.google.com/docs/authentication#service-accounts) | ||
::: | ||
|
||
wish keyFilename: | ||
with keyFilename: | ||
|
||
```yaml | ||
- name: bq # profile name | ||
type: bq | ||
connection: | ||
location: '' | ||
projectId: 'your-project-id' | ||
keyFilename: '/path/to/keyfile.json' | ||
allow: '*' | ||
name: bq # profile name | ||
type: bq | ||
connection: | ||
location: '' | ||
projectId: 'your-project-id' | ||
keyFilename: '/path/to/keyfile.json' | ||
allow: '*' | ||
``` | ||
|
||
wish credential: | ||
with credential: | ||
|
||
```yaml | ||
- name: bq # profile name | ||
type: bq | ||
connection: | ||
location: US | ||
projectId: 'your-project-id' | ||
credential: | ||
client_email: [email protected] | ||
private_key: '-----BEGIN PRIVATE KEY----- XXXXX -----END PRIVATE KEY-----\n' | ||
allow: '*' | ||
name: bq # profile name | ||
type: bq | ||
connection: | ||
location: US | ||
projectId: 'your-project-id' | ||
credential: | ||
client_email: [email protected] | ||
private_key: '-----BEGIN PRIVATE KEY----- XXXXX -----END PRIVATE KEY-----\n' | ||
allow: '*' | ||
``` | ||
|
||
``` | ||
|
||
## Connection Configuration | ||
|
@@ -63,8 +71,9 @@ Please check [Interface BigQueryOptions](https://cloud.google.com/nodejs/docs/re | |
| Name | Required | Default | Description | | ||
| ------------------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| location | N | US | Location must match that of the dataset(s) referenced in the query. | | ||
| projectId | N | | 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](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application Application Default Credentials), your project ID will be detected. | | ||
| projectId | N | | 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](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application) Application Default Credentials), your project ID will be detected. | | ||
| keyFilename | N | | 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. | | ||
| credentials | N | | Credentials object. | | ||
| credentials.client_email | N | | Your service account. | | ||
| credentials.private_key | N | | Your service account's private key. | | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.