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

Method getMaxEdgeId

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

5211
5212 /** The highest edge id so far: edges inserted later have higher ids (AUTOINCREMENT). */
5213 getMaxEdgeId(): number {
5214 return (this.db.prepare('SELECT COALESCE(MAX(id), 0) AS id FROM edges').get() as { id: number }).id;
5215 }
5216
5217 /**
5218 * 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