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

Method setMetadata

src/db/queries.ts:6001–6005  ·  view source on GitHub ↗

* Set a metadata key-value pair (upsert)

(key: string, value: string)

Source from the content-addressed store, hash-verified

5999 * Set a metadata key-value pair (upsert)
6000 */
6001 setMetadata(key: string, value: string): void {
6002 this.db.prepare(
6003 'INSERT INTO project_metadata (key, value, updated_at) VALUES (?, ?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at = excluded.updated_at'
6004 ).run(key, value, Date.now());
6005 }
6006
6007 /**
6008 * Get all metadata as a key-value record

Callers 15

indexAllMethod · 0.80
stampPhpWebRootsMethod · 0.80
syncMethod · 0.80
beginGitIndexStateMethod · 0.80

Calls 2

runMethod · 0.65
prepareMethod · 0.65

Tested by 3

setRecordFunction · 0.64
stampIndexStaleFunction · 0.64
stampStaleFunction · 0.64