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

Function insertFtsEntries

apps/desktop/main/worker/query/fts.ts:67–76  ·  view source on GitHub ↗
(sessionId: string, entries: Array<{ id: number; content: string | null }>)

Source from the content-addressed store, hash-verified

65}
66
67export function insertFtsEntries(sessionId: string, entries: Array<{ id: number; content: string | null }>): void {
68 const db = openWritableDb(sessionId)
69 if (!db) return
70
71 try {
72 coreInsertFtsEntries(new BetterSqliteAdapter(db), entries)
73 } finally {
74 db.close()
75 }
76}
77
78export function searchByFts(
79 sessionId: string,

Callers

nothing calls this directly

Calls 2

openWritableDbFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected