MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / connect

Method connect

src/utils/postgresDatabase.js:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 6

initializeMethod · 0.80
_establishConnectionMethod · 0.80
runFunction · 0.80
migrateFunction · 0.80
checkMigrationVersionFunction · 0.80
printMigrationStatusFunction · 0.80

Calls 1

_establishConnectionMethod · 0.95

Tested by

no test coverage detected