Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
27
export
function
getDbPath(sessionId: string): string {
28
return
path.join(DB_DIR, `${sessionId}.db`)
29
}
30
31
/**
32
* 打开数据库(带缓存)
Callers
11
dbWorker.ts
File · 0.90
getSession
Function · 0.90
openWritableDb
Function · 0.90
ensureAliasesColumn
Function · 0.90
ensureAvatarColumn
Function · 0.90
updateMemberAliases
Function · 0.90
mergeMembers
Function · 0.90
deleteMember
Function · 0.90
openWritableDatabase
Function · 0.90
openReadonlyDatabase
Function · 0.90
openDatabase
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected