Opening connection for building schema.

This commit is contained in:
mike12345567 2022-05-20 17:43:47 +01:00
parent 50445f6990
commit 152f0bb0af
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ module PostgresModule {
*/
async buildSchema(datasourceId: string, entities: Record<string, Table>) {
let tableKeys: { [key: string]: string[] } = {}
await this.openConnection()
try {
const primaryKeysResponse = await this.client.query(
this.PRIMARY_KEYS_SQL