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

Method setMetadata

src/db/queries.ts:4000–4004  ·  view source on GitHub ↗

* Set a metadata key-value pair (upsert)

(key: string, value: string)

Source from the content-addressed store, hash-verified

3998 * Set a metadata key-value pair (upsert)
3999 */
4000 setMetadata(key: string, value: string): void {
4001 this.db.prepare(
4002 'INSERT INTO project_metadata (key, value, updated_at) VALUES (?, ?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at = excluded.updated_at'
4003 ).run(key, value, Date.now());
4004 }
4005
4006 /**
4007 * Get all metadata as a key-value record

Callers 7

indexAllMethod · 0.80
syncMethod · 0.80
beginGitIndexStateMethod · 0.80
finishGitIndexStateMethod · 0.80
upgrade.test.tsFile · 0.80
sync.test.tsFile · 0.80

Calls 2

runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected