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

Method getMaxEdgeId

src/db/queries.ts:5324–5326  ·  view source on GitHub ↗

The highest edge id so far: edges inserted later have higher ids (AUTOINCREMENT).

()

Source from the content-addressed store, hash-verified

5322
5323 /** The highest edge id so far: edges inserted later have higher ids (AUTOINCREMENT). */
5324 getMaxEdgeId(): number {
5325 return (this.db.prepare('SELECT COALESCE(MAX(id), 0) AS id FROM edges').get() as { id: number }).id;
5326 }
5327
5328 /**
5329 * Resolution edges whose TARGET symbol is named one of `names` — the edges a

Callers 2

syncMethod · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected