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

Function forEachRow

src/store/index.ts:2032–2039  ·  view source on GitHub ↗
(tableId: Id, rowCallback: RowCallback)

Source from the content-addressed store, hash-verified

2030 ): void => mapForEach(mapGet(tableCellIds, id(tableId)), tableCellCallback);
2031
2032 const forEachRow = (tableId: Id, rowCallback: RowCallback): void =>
2033 collForEach(mapGet(tablesMap, id(tableId)), (rowMap, rowId) =>
2034 rowCallback(rowId, (cellCallback) =>
2035 mapForEach(rowMap, (cellId, cell) =>
2036 cellCallback(cellId, decodeIfJson(cell)),
2037 ),
2038 ),
2039 );
2040
2041 const forEachCell = (
2042 tableId: Id,

Callers 7

indexes.tsFile · 0.50
relationships.tsFile · 0.50
store.tsFile · 0.50
mergeable-store.tsFile · 0.50
indexes.test.tsFile · 0.50

Calls 5

collForEachFunction · 0.90
mapGetFunction · 0.90
idFunction · 0.90
mapForEachFunction · 0.90
decodeIfJsonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…