MCPcopy
hub / github.com/musistudio/claude-code-router / getDatabase

Method getDatabase

src/main/api-key-store.ts:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 private async getDatabase(): Promise<SqlDatabase> {
96 if (this.database) {
97 return this.database;
98 }
99
100 this.initPromise ??= this.open();
101 return this.initPromise;
102 }
103
104 private async open(): Promise<SqlDatabase> {
105 const dbDir = dirname(this.dbFile);

Callers 2

listMethod · 0.95
replaceMethod · 0.95

Calls 1

openMethod · 0.95

Tested by

no test coverage detected