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

Method removeIndex

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

* Removes an index created with createIndex. * Returns true when an index existed and was removed. * * Best-effort semantics: removing an index guarantees it is detached from * collection query planning. Existing index proxy references should be treated * as invalid after removal.

(indexOrId: BaseIndex<TKey> | number)

Source from the content-addressed store, hash-verified

611 * as invalid after removal.
612 */
613 public removeIndex(indexOrId: BaseIndex<TKey> | number): boolean {
614 return this._indexes.removeIndex(indexOrId)
615 }
616
617 /**
618 * Returns a snapshot of current index metadata sorted by indexId.

Calls

no outgoing calls

Tested by

no test coverage detected