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

Method build

packages/db/src/indexes/btree-index.ts:158–164  ·  view source on GitHub ↗

* Builds the index from a collection of entries

(entries: Iterable<[TKey, any]>)

Source from the content-addressed store, hash-verified

156 * Builds the index from a collection of entries
157 */
158 build(entries: Iterable<[TKey, any]>): void {
159 this.clear()
160
161 for (const [key, item] of entries) {
162 this.add(key, item)
163 }
164 }
165
166 /**
167 * Clears all data from the index

Callers

nothing calls this directly

Calls 2

clearMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected