Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565).
(files: string[])
| 2672 | |
| 2673 | /** Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565). */ |
| 2674 | replaceSynthesisInputs(files: string[]): void { |
| 2675 | this.db.transaction(() => { |
| 2676 | this.db.exec('DELETE FROM synthesis_inputs'); |
| 2677 | const insert = this.db.prepare('INSERT OR IGNORE INTO synthesis_inputs(file_path) SELECT path FROM files WHERE path = ?'); |
| 2678 | for (const file of files) insert.run(file); |
| 2679 | })(); |
| 2680 | } |
| 2681 | |
| 2682 | /** |
| 2683 | * Insert a new edge |
no test coverage detected