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

Method getMetadata

src/db/queries.ts:5993–5996  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

5991 * Get a metadata value by key
5992 */
5993 getMetadata(key: string): string | null {
5994 const row = this.db.prepare('SELECT value FROM project_metadata WHERE key = ?').get(key) as { value: string } | undefined;
5995 return row?.value ?? null;
5996 }
5997
5998 /**
5999 * 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