MCPcopy Create free account
hub / github.com/MemTensor/MemOS / constructor

Method constructor

packages/memos-core/src/storage/sqlite.ts:11–17  ·  view source on GitHub ↗
(dbPath: string, private log: Logger)

Source from the content-addressed store, hash-verified

9 private db: Database.Database;
10
11 constructor(dbPath: string, private log: Logger) {
12 fs.mkdirSync(path.dirname(dbPath), { recursive: true });
13 this.db = new Database(dbPath);
14 this.db.pragma("journal_mode = WAL");
15 this.db.pragma("foreign_keys = ON");
16 this.migrate();
17 }
18
19 // ─── Schema ───
20

Callers

nothing calls this directly

Calls 1

migrateMethod · 0.95

Tested by

no test coverage detected