(db: DatabaseAdapter)
| 78 | * Rebuild FTS index by dropping and recreating. |
| 79 | */ |
| 80 | export function rebuildFtsIndex(db: DatabaseAdapter): { indexed: number } { |
| 81 | if (hasFtsTable(db)) { |
| 82 | db.exec('DROP TABLE message_fts') |
| 83 | } |
| 84 | return buildFtsIndex(db) |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Insert FTS entries for a batch of messages. |
no test coverage detected