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

Method clear

packages/db/src/indexes/basic-index.ts:194–199  ·  view source on GitHub ↗

* Clears all data from the index

()

Source from the content-addressed store, hash-verified

192 * Clears all data from the index
193 */
194 clear(): void {
195 this.valueMap.clear()
196 this.sortedValues = []
197 this.indexedKeys.clear()
198 this.updateTimestamp()
199 }
200
201 /**
202 * Performs a lookup operation

Callers 2

buildMethod · 0.95
clearQueryPatternsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected