MCPcopy Index your code
hub / github.com/TanStack/db / delete

Method delete

packages/db/src/utils/btree.ts:199–201  ·  view source on GitHub ↗

* Removes a single key-value pair from the B+ tree. * @param key Key to find * @returns true if a pair was found and removed, false otherwise. * @description Computational complexity: O(log size)

(key: K)

Source from the content-addressed store, hash-verified

197 * @description Computational complexity: O(log size)
198 */
199 delete(key: K): boolean {
200 return this.editRange(key, key, true, DeleteRange) !== 0
201 }
202
203 // ///////////////////////////////////////////////////////////////////////////
204 // Additional methods ///////////////////////////////////////////////////////

Callers 15

useLiveQueryFunction · 0.45
subscribeMethod · 0.45
onChannelMessageMethod · 0.45
sendRPCOnceMethod · 0.45
encodeTransportValueFunction · 0.45
onMessageFunction · 0.45
sendWorkerRequestFunction · 0.45
subscribeMethod · 0.45
onChannelMessageMethod · 0.45

Calls 1

editRangeMethod · 0.95

Tested by 12

closeMethod · 0.36
tryGrantNextLockFunction · 0.36
removeEventListenerMethod · 0.36
createMockCollectionFunction · 0.36
triggerAllTimeoutsFunction · 0.36
createPersistedAdapterFunction · 0.36
initialCleanupFunction · 0.36
getConfigFunction · 0.36