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

Method getMetadata

src/db/queries.ts:6325–6328  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

6323 * Get a metadata value by key
6324 */
6325 getMetadata(key: string): string | null {
6326 const row = this.db.prepare('SELECT value FROM project_metadata WHERE key = ?').get(key) as { value: string } | undefined;
6327 return row?.value ?? null;
6328 }
6329
6330 /**
6331 * Set a metadata key-value pair (upsert)

Callers 15

syncMethod · 0.80
runDeferredSynthesisMethod · 0.80
getIndexStateMethod · 0.80
getIndexBuildInfoMethod · 0.80
indexedDirtyPathsMethod · 0.80
beginGitIndexStateMethod · 0.80
sparseCheckoutChangesMethod · 0.80

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by 5

recordFunction · 0.64
metadataFunction · 0.64
metadataFunction · 0.64
metadataFunction · 0.64
fingerprintsFunction · 0.64