Skip to content

Commit e9a4458

Browse files
authored
feat(questdb-driver): Add SSL support (#6395)
1 parent 6507d67 commit e9a4458

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/content/Configuration/Databases/QuestDB.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CUBEJS_DB_PASS=quest
3131
| `CUBEJS_DB_NAME` | The name of the database to connect to | A valid database name |||
3232
| `CUBEJS_DB_USER` | The username used to connect to the database | A valid database username |||
3333
| `CUBEJS_DB_PASS` | The password used to connect to the database | A valid database password |||
34+
| `CUBEJS_DB_SSL` | If `true`, enables SSL encryption for database connections from Cube | `true`, `false` |||
3435
| `CUBEJS_CONCURRENCY` | The number of concurrent connections each queue has to the database. Default is `2` | A valid number |||
3536
| `CUBEJS_DB_MAX_POOL` | The maximum number of concurrent database connections to pool. Default is `8` | A valid number |||
3637

packages/cubejs-questdb-driver/src/QuestDriver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export class QuestDriver<Config extends QuestDriverConfiguration = QuestDriverCo
9494
port: getEnv('dbPort', { dataSource }),
9595
user: getEnv('dbUser', { dataSource }),
9696
password: getEnv('dbPass', { dataSource }),
97+
ssl: this.getSslOptions(dataSource),
9798
...config
9899
});
99100
this.pool.on('error', (err) => {

0 commit comments

Comments
 (0)