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

Function setJson

src/store/index.ts:1767–1777  ·  view source on GitHub ↗
(tablesAndValuesJson: Json)

Source from the content-addressed store, hash-verified

1765 };
1766
1767 const setJson = (tablesAndValuesJson: Json): Store =>
1768 fluentTransaction(() =>
1769 tryCatch(
1770 () => {
1771 const [tables, values] = jsonParse(tablesAndValuesJson);
1772 setOrDelTables(tables);
1773 setOrDelValues(values);
1774 },
1775 () => setTablesJson(tablesAndValuesJson),
1776 ),
1777 );
1778
1779 const setTablesSchema = (tablesSchema: TablesSchema): Store =>
1780 fluentTransaction(() => {

Callers

nothing calls this directly

Calls 5

tryCatchFunction · 0.90
fluentTransactionFunction · 0.70
setOrDelTablesFunction · 0.70
setOrDelValuesFunction · 0.70
setTablesJsonFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…