MCPcopy Create free account
hub / github.com/cortexkit/magic-context / makeDb

Function makeDb

packages/cli/src/commands/doctor-opencode.test.ts:87–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87function makeDb(): Database {
88 const db = new Database(":memory:");
89 initializeDatabase(db);
90 runMigrations(db);
91 dbs.push(db);
92 return db;
93}
94
95function insertMemory(database: Database, projectPath: string, normalizedHash: string): number {
96 const result = database

Callers 1

Calls 2

initializeDatabaseFunction · 0.90
runMigrationsFunction · 0.85

Tested by

no test coverage detected