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

Method replaceSynthesisInputs

src/db/queries.ts:2674–2680  ·  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

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

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