MCPcopy Create free account
hub / github.com/RemoteState/nodejs-ecs / getInstance

Method getInstance

src/database/index.ts:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 public static getInstance(): Database {
13 if (!Database.instance) {
14 Database.instance = new Database();
15 }
16 return Database.instance;
17 }
18
19 public async connectAndMigrate(logging: boolean) {
20 this.conn = await createConnection();

Callers 3

index.tsFile · 0.45
health.tsFile · 0.45
users.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected