()
| 19 | |
| 20 | let migrationConnection; |
| 21 | async function getMigrationConnection() { |
| 22 | if (migrationConnection) { |
| 23 | return migrationConnection; |
| 24 | } |
| 25 | const dbConfig = await getDBConfig(); |
| 26 | const options: ConnectionOptions = dbConfig; |
| 27 | migrationConnection = await mysqlPromise.createConnection(options); |
| 28 | return migrationConnection; |
| 29 | } |
| 30 | |
| 31 | let pool, databaseMonitor; |
| 32 | async function loadPool(): Promise<Pool> { |
no test coverage detected