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

Method getMetadata

src/db/queries.ts:2857–2860  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

2855 * Get a metadata value by key
2856 */
2857 getMetadata(key: string): string | null {
2858 const row = this.db.prepare('SELECT value FROM project_metadata WHERE key = ?').get(key) as { value: string } | undefined;
2859 return row?.value ?? null;
2860 }
2861
2862 /**
2863 * 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