MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / replaceSynthesisInputs

Method replaceSynthesisInputs

src/db/queries.ts:2658–2664  ·  view source on GitHub ↗

Record the files synthesis read; a path the index doesn't hold as a file (a package directory) is not one (#2565).

(files: string[])

Source from the content-addressed store, hash-verified

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

Callers 2

synthesizeCallbackEdgesFunction · 0.80

Calls 4

transactionMethod · 0.65
execMethod · 0.65
prepareMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected