MCPcopy
hub / github.com/tinyplex/tinybase / setContent

Function setContent

src/store/index.ts:1569–1575  ·  view source on GitHub ↗
(content: Content | (() => Content))

Source from the content-addressed store, hash-verified

1567 jsonStringWithMap([tablesSchemaMap, valuesSchemaMap]);
1568
1569 const setContent = (content: Content | (() => Content)): Store =>
1570 fluentTransaction(() => {
1571 const content2 = isFunction(content) ? content() : content;
1572 if (validateContent(content2)) {
1573 setValidContent(content2);
1574 }
1575 });
1576
1577 const setTables = (tables: Tables): Store =>
1578 fluentTransaction(() =>

Callers

nothing calls this directly

Calls 4

isFunctionFunction · 0.90
fluentTransactionFunction · 0.70
setValidContentFunction · 0.70
contentFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…