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

Function isExactComparisonValue

packages/db/src/utils/index-optimization.ts:118–120  ·  view source on GitHub ↗

* Whether a value can be matched exactly by an index lookup, i.e. the index * result for it is not a superset that the caller must re-filter. * * Only `null`/`undefined` are inexact: the WHERE evaluator's three-valued logic * makes any comparison against them UNKNOWN, yet a BTree index stores an

(value: unknown)

Source from the content-addressed store, hash-verified

116 * so the evaluator and the index agree on them and no re-filtering is needed.
117 */
118function isExactComparisonValue(value: unknown): boolean {
119 return value != null
120}
121
122/**
123 * Whether the collection orders strings using locale collation.

Callers 3

optimizeSimpleComparisonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected