Skip to content

Commit

Permalink
feat(firebolt-driver): Use driver's own test connection method, thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Oct 16, 2024
1 parent a8f48f2 commit 70a36d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cubejs-firebolt-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@cubejs-backend/base-driver": "^1.0.0",
"@cubejs-backend/schema-compiler": "^1.0.0",
"@cubejs-backend/shared": "^1.0.0",
"firebolt-sdk": "^1.2.0"
"firebolt-sdk": "^1.8.0"
},
"license": "Apache-2.0",
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cubejs-firebolt-driver/src/FireboltDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ export class FireboltDriver extends BaseDriver implements DriverInterface {

public async testConnection(): Promise<void> {
try {
await this.query('select 1');
const connection = await this.getConnection();
await connection.testConnection();
} catch (error) {
console.log(error);
throw new Error('Unable to connect');
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16501,10 +16501,10 @@ find-yarn-workspace-root@^2.0.0:
dependencies:
micromatch "^4.0.2"

firebolt-sdk@^1.2.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/firebolt-sdk/-/firebolt-sdk-1.4.0.tgz#13a2b54a3b4265179c484e3bb8a37e15880aee1b"
integrity sha512-ZAFDtlpyoR4BJZPgem3aZEzpssVe39lAWCzsMDMw7KKFUJzqeMA7ARL99puB5bDcMzLBteGDR1S8iyPkwLTJsA==
firebolt-sdk@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/firebolt-sdk/-/firebolt-sdk-1.8.0.tgz#f2366f28608b40db688f30505a20fba393f10aae"
integrity sha512-jQBh6a8xxkRQyjwliJ7l/1jHG3pn5367mhDP2UrMKqDmkWQl4qKngcQB7RMT3I9bsUJmwvHMe4ym5pOo8ZIPyA==
dependencies:
"@types/json-bigint" "^1.0.1"
abort-controller "^3.0.0"
Expand Down

0 comments on commit 70a36d8

Please sign in to comment.