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

Function getTableHash

src/common/hash.ts:74–83  ·  view source on GitHub ↗
(rowHashes: {
  [rowId: Id]: Hash;
})

Source from the content-addressed store, hash-verified

72 getValueInValuesHash;
73
74export const getTableHash: typeof getTableHashDecl = (rowHashes: {
75 [rowId: Id]: Hash;
76}): Hash =>
77 // alias to getValuesHash in v7
78 arrayReduce(
79 objEntries(rowHashes),
80 (valuesHash, [rowId, rowHash]) =>
81 addOrRemoveHash(valuesHash, getValueInValuesHash(rowId, rowHash)),
82 0, // legacy v5; rowHlc in v7?
83 );
84
85export const getTableInTablesHash: typeof getTableHashInTablesDecl =
86 getValueInValuesHash;

Callers

nothing calls this directly

Calls 3

arrayReduceFunction · 0.90
addOrRemoveHashFunction · 0.90
getValueInValuesHashFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…