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

Function constructor

packages/db/src/indexes/base-index.ts:108–119  ·  view source on GitHub ↗
(
    id: number,
    expression: BasicExpression,
    name?: string,
    options?: any,
  )

Source from the content-addressed store, hash-verified

106 protected hasCustomComparator = false
107
108 constructor(
109 id: number,
110 expression: BasicExpression,
111 name?: string,
112 options?: any,
113 ) {
114 this.id = id
115 this.expression = expression
116 this.compareOptions = DEFAULT_COMPARE_OPTIONS
117 this.name = name
118 this.initialize(options)
119 }
120
121 // Abstract methods that each index type must implement
122 abstract add(key: TKey, item: any): void

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected