MCPcopy Create free account
hub / github.com/TanStack/db / getTupleId

Method getTupleId

packages/db-ivm/src/multiset.ts:107–113  ·  view source on GitHub ↗
(tuple: Array<any>)

Source from the content-addressed store, hash-verified

105 * consolidation of join results like ['A', null] and [null, 'X'].
106 */
107 const getTupleId = (tuple: Array<any>): string => {
108 if (tuple.length !== 2) {
109 throw new Error(`Expected tuple of length 2`)
110 }
111 const [first, second] = tuple
112 return `${globalObjectIdGenerator.getStringId(first)}|${globalObjectIdGenerator.getStringId(second)}`
113 }
114
115 // Process each item in the multiset
116 for (const [data, multiplicity] of this.#inner) {

Callers

nothing calls this directly

Calls 1

getStringIdMethod · 0.80

Tested by

no test coverage detected