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

Function index

__tests__/react-wrapper-initializers.test.ts:135–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 });
134
135 async function index() {
136 cg = await CodeGraph.init(dir, { silent: true });
137 await cg.indexAll();
138 return (cg as any).db.db;
139 }
140
141 /** `kind` edges from a component to a node, as `Source>target`. */
142 const edgesFrom = (db: any, kind: string, where = '1=1'): string[] =>

Calls 2

initMethod · 0.45
indexAllMethod · 0.45

Tested by

no test coverage detected