()
| 17 | } |
| 18 | |
| 19 | async connect() { |
| 20 | if (this.connectionPromise) { |
| 21 | return this.connectionPromise; |
| 22 | } |
| 23 | |
| 24 | this.connectionPromise = this._establishConnection(); |
| 25 | return this.connectionPromise; |
| 26 | } |
| 27 | |
| 28 | async _establishConnection() { |
| 29 | const retries = Number.isFinite(pgConfig.options.retries) ? pgConfig.options.retries : 0; |
no test coverage detected