( adapter: SessionRuntimeAdapter, sessionId: string, keywords: string[], limit: number, offset: number )
| 38 | } |
| 39 | |
| 40 | export function searchFts( |
| 41 | adapter: SessionRuntimeAdapter, |
| 42 | sessionId: string, |
| 43 | keywords: string[], |
| 44 | limit: number, |
| 45 | offset: number |
| 46 | ) { |
| 47 | const db = adapter.ensureReadonly(sessionId) |
| 48 | return searchByFts(db, keywords, limit, offset) |
| 49 | } |
| 50 | |
| 51 | export function rebuildFts(adapter: SessionRuntimeAdapter, sessionId: string) { |
| 52 | const db = adapter.ensureWritable(sessionId) |
nothing calls this directly
no test coverage detected