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

Method getMetadata

src/db/queries.ts:2477–2480  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

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