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

Method maxKey

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

Gets the highest key in the tree. Complexity: O(1)

()

Source from the content-addressed store, hash-verified

215
216 /** Gets the highest key in the tree. Complexity: O(1) */
217 maxKey(): K | undefined {
218 return this._root.maxKey()
219 }
220
221 /** Gets an array of all keys, sorted */
222 keysArray() {

Callers 9

keysArrayMethod · 0.95
constructorMethod · 0.45
setMethod · 0.45
insertMethod · 0.45
forRangeMethod · 0.45
tryMergeMethod · 0.45
rangeQueryMethod · 0.45
rangeQueryReversedMethod · 0.45
insertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected