Skip to content
Merged
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
13 changes: 11 additions & 2 deletions packages/cubejs-redshift-driver/src/RedshiftDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ export class RedshiftDriver extends PostgresDriver<RedshiftDriverConfiguration>
}
}

/**
* AWS Redshift doesn't have any special connection check.
* And querying even system tables is billed.
* @override
*/
public async testConnection() {
const conn = await this.pool.connect();
conn.release();
}

public override async stream(
query: string,
values: unknown[],
Expand Down Expand Up @@ -287,8 +297,7 @@ export class RedshiftDriver extends PostgresDriver<RedshiftDriverConfiguration>
};
} finally {
conn.removeAllListeners('notice');

await conn.release();
conn.release();
}
}

Expand Down
Loading