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

Method entries

packages/db/src/collection/index.ts:520–527  ·  view source on GitHub ↗

* Get all entries (virtual derived state)

()

Source from the content-addressed store, hash-verified

518 * Get all entries (virtual derived state)
519 */
520 public *entries(): IterableIterator<[TKey, WithVirtualProps<TOutput, TKey>]> {
521 for (const key of this._state.keys()) {
522 const value = this.get(key)
523 if (value !== undefined) {
524 yield [key, value]
525 }
526 }
527 }
528
529 /**
530 * Get all entries (virtual derived state)

Callers 15

[Symbol.iterator]Method · 0.95
forEachMethod · 0.95
mapMethod · 0.95
stateMethod · 0.95
toSerializableIndexValueFunction · 0.45
createIndexMethod · 0.45
processMethod · 0.45
collectFilteredResultsFunction · 0.45
getOrderedKeysFunction · 0.45
createSyncMetadataApiMethod · 0.45

Calls 2

getMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected