extension-driver-bq
nodejs-bigquery driver for Vulcan SQL.
Install
-
Install package
npm i @vulcan-sql/extension-driver-bq
-
Update vulcan.yaml
, enable the extension.
extensions:
bq: '@vulcan-sql/extension-driver-bq'
-
Create a new profile in profiles.yaml
or in your profiles' paths.
⚠️ Your service account must have the following permissions to successfully execute queries.
- BigQuery Data Viewer
- BigQuery Job User
- name: bq
type: bq
connection:
location: US
chunkSize: 100
projectId: 'your-project-id'
keyFilename: '/path/to/keyfile.json'
cache:
bucketName: 'your-bucket-name'
Testing
nx test extension-driver-bq
This library was generated with Nx.
To run test, the following environment variables are required:
- BQ_LOCATION
- BQ_PROJECT_ID
- BQ_CLIENT_EMAIL
- BQ_PRIVATE_KEY
- GCS_BUCKET_NAME