Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add role parameter to Snowflake driver options #448

Merged
merged 1 commit into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Cube.js-Backend/Connecting-to-the-Database.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The table below shows which environment variables are used for different databas
| AWS Athena | `CUBEJS_AWS_KEY`, `CUBEJS_AWS_SECRET`, `CUBEJS_AWS_REGION`, `CUBEJS_AWS_S3_OUTPUT_LOCATION` |
| Google Bigquery | `CUBEJS_DB_BQ_PROJECT_ID`, `CUBEJS_DB_BQ_KEY_FILE or CUBEJS_DB_BQ_CREDENTIALS` |
| MongoDB | `CUBEJS_DB_HOST`, `CUBEJS_DB_NAME`, `CUBEJS_DB_PORT`, `CUBEJS_DB_USER`, `CUBEJS_DB_PASS`, `CUBEJS_DB_SSL`, `CUBEJS_DB_SSL_CA`, `CUBEJS_DB_SSL_CERT`, `CUBEJS_DB_SSL_CIPHERS`, `CUBEJS_DB_SSL_PASSPHRASE` |
| Snowflake | `CUBEJS_DB_SNOWFLAKE_ACCOUNT`, `CUBEJS_DB_SNOWFLAKE_REGION`, `CUBEJS_DB_SNOWFLAKE_WAREHOUSE`, `CUBEJS_DB_NAME`, `CUBEJS_DB_USER`, `CUBEJS_DB_PASS`|
| Snowflake | `CUBEJS_DB_SNOWFLAKE_ACCOUNT`, `CUBEJS_DB_SNOWFLAKE_REGION`, `CUBEJS_DB_SNOWFLAKE_WAREHOUSE`, `CUBEJS_DB_SNOWFLAKE_ROLE`, `CUBEJS_DB_NAME`, `CUBEJS_DB_USER`, `CUBEJS_DB_PASS`|
| Presto | `CUBEJS_DB_HOST`, `CUBEJS_DB_PORT`, `CUBEJS_DB_CATALOG`, `CUBEJS_DB_SCHEMA`, `CUBEJS_DB_USER`, `CUBEJS_DB_PASS` |

## Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class SnowflakeDriver extends BaseDriver {
account: process.env.CUBEJS_DB_SNOWFLAKE_ACCOUNT,
region: process.env.CUBEJS_DB_SNOWFLAKE_REGION,
warehouse: process.env.CUBEJS_DB_SNOWFLAKE_WAREHOUSE,
role: process.env.CUBEJS_DB_SNOWFLAKE_ROLE,
database: process.env.CUBEJS_DB_NAME,
username: process.env.CUBEJS_DB_USER,
password: process.env.CUBEJS_DB_PASS,
Expand All @@ -26,7 +27,8 @@ class SnowflakeDriver extends BaseDriver {
'CUBEJS_DB_PASS',
'CUBEJS_DB_SNOWFLAKE_ACCOUNT',
'CUBEJS_DB_SNOWFLAKE_REGION',
'CUBEJS_DB_SNOWFLAKE_WAREHOUSE'
'CUBEJS_DB_SNOWFLAKE_WAREHOUSE',
'CUBEJS_DB_SNOWFLAKE_ROLE'
];
}

Expand Down