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

Function sorted

__tests__/orphaned-refs-sweep.test.ts:72–72  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

70 const { db } = createDatabase(path.join(testDir, '.codegraph', 'codegraph.db'), { readOnly: true });
71 try {
72 const sorted = (sql: string) => db.prepare(sql).all().map((row) => JSON.stringify(row)).sort();
73 return {
74 nodes: sorted('SELECT id, kind, name, qualified_name, file_path FROM nodes'),
75 edges: sorted('SELECT source, target, kind, line, col, metadata, provenance FROM edges'),

Callers 1

graphSnapshotFunction · 0.70

Calls 3

mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected