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

Method entriesIterators

packages/db-ivm/src/indexes.ts:289–293  ·  view source on GitHub ↗

* This method only iterates over the keys and not over the values. * Hence, it is more efficient than the `#entries` method. * It returns an iterator that you can use if you need to iterate over the values for a given key. * @returns An iterator of all *keys* in the index and their correspo

()

Source from the content-addressed store, hash-verified

287 * @returns An iterator of all *keys* in the index and their corresponding value iterator.
288 */
289 *entriesIterators(): Iterable<[TKey, Iterable<[TValue, number]>]> {
290 for (const key of this.#inner.keys()) {
291 yield [key, this.getIterator(key)]
292 }
293 }
294
295 /**
296 * This method adds a value to the index.

Callers 3

joinMethod · 0.95
emitLeftOuterResultsMethod · 0.80
emitRightOuterResultsMethod · 0.80

Calls 2

getIteratorMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected