MCPcopy Create free account
hub / github.com/CommE2E/comm / getMigrationConnection

Function getMigrationConnection

keyserver/src/database/database.js:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20let migrationConnection;
21async 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
31let pool, databaseMonitor;
32async function loadPool(): Promise<Pool> {

Callers 1

dbQueryFunction · 0.85

Calls 2

getDBConfigFunction · 0.90
createConnectionMethod · 0.80

Tested by

no test coverage detected