8000 fix(collector): fall back to plain readonly path when opening agy SQLite on Linux by InfinityPacer · Pull Request #73 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content
10000
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/collector/agy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,13 @@ function openConversationDb(
const db = new Database(uri, { readonly: true });
return { db, close: () => db.close() };
} catch {
return null;
// Linux 上的 SQLite 默认不解析 file: URI 参数,回退到普通路径只读打开。
try {
const db = new Database(path, { readonly: true });
return { db, close: () => db.close() };
} catch {
return null;
}
}
}

Expand Down
Loading
0