MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / putBlobDb

Function putBlobDb

apps/cloud/scripts/migrate-specs-to-blobs.ts:125–132  ·  view source on GitHub ↗
(namespace: string, key: string, value: string)

Source from the content-addressed store, hash-verified

123};
124
125const putBlobDb = async (namespace: string, key: string, value: string): Promise<void> => {
126 const id = fumaBlobId(namespace, key);
127 await sql`
128 INSERT INTO blob (namespace, key, value, id)
129 VALUES (${namespace}, ${key}, ${value}, ${id})
130 ON CONFLICT (id) DO UPDATE SET value = EXCLUDED.value
131 `;
132};
133
134// --- main ---
135

Callers 1

Calls 1

fumaBlobIdFunction · 0.85

Tested by

no test coverage detected