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

Method getMetadata

src/db/queries.ts:5874–5877  ·  view source on GitHub ↗

* Get a metadata value by key

(key: string)

Source from the content-addressed store, hash-verified

5872 * Get a metadata value by key
5873 */
5874 getMetadata(key: string): string | null {
5875 const row = this.db.prepare('SELECT value FROM project_metadata WHERE key = ?').get(key) as { value: string } | undefined;
5876 return row?.value ?? null;
5877 }
5878
5879 /**
5880 * 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