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

Method clear

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

* Clears all data from the index

()

Source from the content-addressed store, hash-verified

167 * Clears all data from the index
168 */
169 clear(): void {
170 this.orderedEntries.clear()
171 this.valueMap.clear()
172 this.indexedKeys.clear()
173 this.updateTimestamp()
174 }
175
176 /**
177 * Performs a lookup operation

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected