We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cf544 commit c5aa6ccCopy full SHA for c5aa6cc
packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts
@@ -145,8 +145,8 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
145
const protocol = config.protocol ?? getEnv('dbSsl', { dataSource }) ? 'https:' : 'http:';
146
const url = `${protocol}//${host}:${port}`;
147
148
- const username = getEnv('dbUser', { dataSource });
149
- const password = getEnv('dbPass', { dataSource });
+ const username = config.username ?? getEnv('dbUser', { dataSource });
+ const password = config.password ?? getEnv('dbPass', { dataSource });
150
const database = config.database ?? (getEnv('dbName', { dataSource }) as string) ?? 'default';
151
152
// TODO this is a bit inconsistent with readOnly
0 commit comments