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

Function getDbPath

apps/desktop/main/worker/core/dbCore.ts:27–29  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

25 * 获取数据库文件路径
26 */
27export function getDbPath(sessionId: string): string {
28 return path.join(DB_DIR, `${sessionId}.db`)
29}
30
31/**
32 * 打开数据库(带缓存)

Callers 11

dbWorker.tsFile · 0.90
getSessionFunction · 0.90
openWritableDbFunction · 0.90
ensureAliasesColumnFunction · 0.90
ensureAvatarColumnFunction · 0.90
updateMemberAliasesFunction · 0.90
mergeMembersFunction · 0.90
deleteMemberFunction · 0.90
openWritableDatabaseFunction · 0.90
openReadonlyDatabaseFunction · 0.90
openDatabaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected