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

Function getMergeableRowHashes

src/mergeable-store/index.ts:520–536  ·  view source on GitHub ↗
(otherTableHashes: TableHashes)

Source from the content-addressed store, hash-verified

518 };
519
520 const getMergeableRowHashes = (otherTableHashes: TableHashes): RowHashes => {
521 const rowHashes: RowHashes = {};
522 objForEach(otherTableHashes, (otherTableHash, tableId) =>
523 ifNotUndefined(
524 mapGet(contentStampMap[0][0], tableId),
525 ([rowStampMaps, , tableHash]) =>
526 tableHash != otherTableHash
527 ? mapForEach(
528 rowStampMaps,
529 (rowId, [, , rowHash]) =>
530 (objEnsure(rowHashes, tableId, objNew)[rowId] = rowHash),
531 )
532 : 0,
533 ),
534 );
535 return rowHashes;
536 };
537
538 const getMergeableRowDiff = (
539 otherTableRowHashes: RowHashes,

Callers

nothing calls this directly

Calls 4

objForEachFunction · 0.90
mapGetFunction · 0.90
mapForEachFunction · 0.90
objEnsureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…