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

Function forEachRow

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:2245–2254  ·  view source on GitHub ↗
(tableId, rowCallback)

Source from the content-addressed store, hash-verified

2243 );
2244 const forEachTableCell = (tableId, tableCellCallback) => mapForEach(mapGet(tableCellIds, id(tableId)), tableCellCallback);
2245 const forEachRow = (tableId, rowCallback) => collForEach(
2246 mapGet(tablesMap, id(tableId)),
2247 (rowMap, rowId) => rowCallback(
2248 rowId,
2249 (cellCallback) => mapForEach(
2250 rowMap,
2251 (cellId, cell) => cellCallback(cellId, decodeIfJson(cell))
2252 )
2253 )
2254 );
2255 const forEachCell = (tableId, rowId, cellCallback) => mapForEach(
2256 mapGet(mapGet(tablesMap, id(tableId)), id(rowId)),
2257 (cellId, cell) => cellCallback(cellId, decodeIfJson(cell))

Callers

nothing calls this directly

Calls 5

collForEachFunction · 0.70
mapGetFunction · 0.70
idFunction · 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…