MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / openDatabase

Function openDatabase

apps/desktop/main/worker/import/streamImport.ts:73–76  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

71function buildStreamImportDeps(requestId: string): StreamImportDeps {
72 return {
73 openDatabase(sessionId: string) {
74 const db = createDatabaseWithoutIndexes(sessionId)
75 return new BetterSqliteAdapter(db)
76 },
77 deleteDatabase(sessionId: string) {
78 const dbPath = getDbPath(sessionId)
79 for (const suffix of ['', '-wal', '-shm']) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected