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

Method setMetadata

src/db/queries.ts:2484–2488  ·  view source on GitHub ↗

* Set a metadata key-value pair (upsert)

(key: string, value: string)

Source from the content-addressed store, hash-verified

2482 * Set a metadata key-value pair (upsert)
2483 */
2484 setMetadata(key: string, value: string): void {
2485 this.db.prepare(
2486 'INSERT INTO project_metadata (key, value, updated_at) VALUES (?, ?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at = excluded.updated_at'
2487 ).run(key, value, Date.now());
2488 }
2489
2490 /**
2491 * Get all metadata as a key-value record

Callers 2

indexAllMethod · 0.80
upgrade.test.tsFile · 0.80

Calls 2

runMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected