MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getDbPath

Function getDbPath

apps/desktop/main/database/core.ts:54–56  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

52 * 获取数据库文件路径
53 */
54export function getDbPath(sessionId: string): string {
55 return path.join(getDbDir(), `${sessionId}.db`)
56}
57
58/**
59 * 创建新数据库并初始化表结构

Callers 7

saveSummaryFunction · 0.90
createDatabaseFunction · 0.70
openDatabaseFunction · 0.70
deleteSessionFunction · 0.70
renameSessionFunction · 0.70
checkMigrationNeededFunction · 0.70

Calls 1

getDbDirFunction · 0.70

Tested by

no test coverage detected