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

Function openDatabaseAdapter

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

Source from the content-addressed store, hash-verified

183 * 打开数据库并返回 DatabaseAdapter(用于调用 @openchatlab/core 查询函数)
184 */
185export function openDatabaseAdapter(sessionId: string): DatabaseAdapter | null {
186 const db = openDatabase(sessionId)
187 if (!db) return null
188 return wrapAsDatabaseAdapter(db)
189}

Callers 15

getWordFrequencyFunction · 0.90
getAvailableYearsFunction · 0.90
getMemberActivityFunction · 0.90
getHourlyActivityFunction · 0.90
getDailyActivityFunction · 0.90
getWeekdayActivityFunction · 0.90
getMonthlyActivityFunction · 0.90
getYearlyActivityFunction · 0.90
getTimeRangeFunction · 0.90
getMemberNameHistoryFunction · 0.90

Calls 2

wrapAsDatabaseAdapterFunction · 0.85
openDatabaseFunction · 0.70

Tested by

no test coverage detected