Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
54
export
function
getDbPath(sessionId: string): string {
55
return
path.join(getDbDir(), `${sessionId}.db`)
56
}
57
58
/**
59
* 创建新数据库并初始化表结构
Callers
7
saveSummary
Function · 0.90
createDatabase
Function · 0.70
openDatabase
Function · 0.70
openDatabaseWithMigration
Function · 0.70
deleteSession
Function · 0.70
renameSession
Function · 0.70
checkMigrationNeeded
Function · 0.70
Calls
1
getDbDir
Function · 0.70
Tested by
no test coverage detected