(sessionId: string, entries: Array<{ id: number; content: string | null }>)
| 65 | } |
| 66 | |
| 67 | export 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 | |
| 78 | export function searchByFts( |
| 79 | sessionId: string, |
nothing calls this directly
no test coverage detected