(db: DatabaseAdapter, table: 'segment' | 'message_context')
| 107 | } |
| 108 | |
| 109 | function countRows(db: DatabaseAdapter, table: 'segment' | 'message_context'): number { |
| 110 | const row = db.prepare(`SELECT COUNT(*) as count FROM ${table}`).get() as { count: number } |
| 111 | return row.count |
| 112 | } |
| 113 | |
| 114 | function getMetaGapThreshold(db: DatabaseAdapter): number | null { |
| 115 | const row = db.prepare('SELECT session_gap_threshold FROM meta LIMIT 1').get() as { |
no test coverage detected