1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

Opening connection for building schema.

This commit is contained in:
mike12345567 2022-05-20 17:43:47 +01:00
parent 50445f6990
commit 152f0bb0af

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