MCPcopy Index your code
hub / github.com/tinyplex/tinybase / forEachTable

Function forEachTable

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2228–2243  ·  view source on GitHub ↗
(tableCallback)

Source from the content-addressed store, hash-verified

2226 return store;
2227 };
2228 const forEachTable = (tableCallback) => collForEach(
2229 tablesMap,
2230 (tableMap, tableId) => tableCallback(
2231 tableId,
2232 (rowCallback) => collForEach(
2233 tableMap,
2234 (rowMap, rowId) => rowCallback(
2235 rowId,
2236 (cellCallback) => mapForEach(
2237 rowMap,
2238 (cellId, cell) => cellCallback(cellId, decodeIfJson(cell))
2239 )
2240 )
2241 )
2242 )
2243 );
2244 const forEachTableCell = (tableId, tableCellCallback) => mapForEach(mapGet(tableCellIds, id(tableId)), tableCellCallback);
2245 const forEachRow = (tableId, rowCallback) => collForEach(
2246 mapGet(tablesMap, id(tableId)),

Callers

nothing calls this directly

Calls 3

collForEachFunction · 0.70
mapForEachFunction · 0.70
decodeIfJsonFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…