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

Function initDbDir

apps/desktop/main/worker/core/dbCore.ts:18–22  ·  view source on GitHub ↗
(dir: string, cacheDir?: string, tempDir?: string)

Source from the content-addressed store, hash-verified

16const dbCache = new Map<string, Database.Database>()
17
18export function initDbDir(dir: string, cacheDir?: string, tempDir?: string): void {
19 DB_DIR = dir
20 if (cacheDir) CACHE_DIR = cacheDir
21 if (tempDir) TEMP_DIR = tempDir
22}
23
24/**
25 * 获取数据库文件路径

Callers 1

dbWorker.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected