Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565).
(files: string[])
| 2938 | |
| 2939 | /** Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565). */ |
| 2940 | replaceSynthesisInputs(files: string[]): void { |
| 2941 | this.db.transaction(() => { |
| 2942 | this.db.exec('DELETE FROM synthesis_inputs'); |
| 2943 | const insert = this.db.prepare('INSERT OR IGNORE INTO synthesis_inputs(file_path) SELECT path FROM files WHERE path = ?'); |
| 2944 | for (const file of files) insert.run(file); |
| 2945 | })(); |
| 2946 | } |
| 2947 | |
| 2948 | /** |
| 2949 | * Insert a new edge |
no test coverage detected