MCPcopy Create free account
hub / github.com/codemix/graph / analyzeCondition

Function analyzeCondition

packages/graph/src/indexes/QueryPlanner.ts:71–75  ·  view source on GitHub ↗
(condition: Condition)

Source from the content-addressed store, hash-verified

69 * @returns Array of index hints that could optimize this condition.
70 */
71export function analyzeCondition(condition: Condition): IndexHint[] {
72 const hints: IndexHint[] = [];
73 analyzeConditionRecursive(condition, hints);
74 return hints;
75}
76
77/**
78 * Recursively analyze a condition tree.

Callers 2

traverseMethod · 0.85
indexes.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected