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

Method getMetadata

src/db/queries.ts:2476–2479  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

2474 * Get a metadata value by key
2475 */
2476 getMetadata(key: string): string | null {
2477 const row = this.db.prepare('SELECT value FROM project_metadata WHERE key = ?').get(key) as { value: string } | undefined;
2478 return row?.value ?? null;
2479 }
2480
2481 /**
2482 * Set a metadata key-value pair (upsert)

Callers 2

getIndexStateMethod · 0.80
getIndexBuildInfoMethod · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected