`synthesis_pending` as stored, read through a connection of its own.
(dir: string)
| 52 | |
| 53 | /** `synthesis_pending` as stored, read through a connection of its own. */ |
| 54 | function pending(dir: string): string | null { |
| 55 | const { db } = createDatabase(path.join(dir, '.codegraph', 'codegraph.db'), { readOnly: true }); |
| 56 | try { |
| 57 | const row = db.prepare("SELECT value FROM project_metadata WHERE key = 'synthesis_pending'").get() as { value: string } | undefined; |
| 58 | return row?.value ?? null; |
| 59 | } finally { |
| 60 | db.close(); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** Every synthesized edge between functions, as `caller->callee`. */ |
| 65 | function synthesized(cg: CodeGraph): string[] { |
no test coverage detected