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

Function dump

scripts/dump-graph.mjs:33–38  ·  view source on GitHub ↗
(title, sql)

Source from the content-addressed store, hash-verified

31const db = new DatabaseSync(dbPath, { readOnly: true });
32
33function dump(title, sql) {
34 const rows = db.prepare(sql).all();
35 const lines = rows.map((r) => JSON.stringify(r)).sort();
36 process.stdout.write(`== ${title} (${lines.length})\n`);
37 for (const l of lines) process.stdout.write(l + '\n');
38}
39
40dump(
41 'nodes',

Callers 1

dump-graph.mjsFile · 0.85

Calls 4

mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected