Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565).
(files: string[])
| 2656 | |
| 2657 | /** Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565). */ |
| 2658 | replaceSynthesisInputs(files: string[]): void { |
| 2659 | this.db.transaction(() => { |
| 2660 | this.db.exec('DELETE FROM synthesis_inputs'); |
| 2661 | const insert = this.db.prepare('INSERT OR IGNORE INTO synthesis_inputs(file_path) SELECT path FROM files WHERE path = ?'); |
| 2662 | for (const file of files) insert.run(file); |
| 2663 | })(); |
| 2664 | } |
| 2665 | |
| 2666 | /** |
| 2667 | * Insert a new edge |
no test coverage detected