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

Function traverse

packages/db/src/query/live/utils.ts:215–229  ·  view source on GitHub ↗
(q?: QueryIR)

Source from the content-addressed store, hash-verified

213 }
214
215 function traverse(q?: QueryIR) {
216 if (!q) return
217
218 recordAlias(q.from)
219
220 if (q.join) {
221 for (const joinClause of q.join) {
222 recordAlias(joinClause.from)
223 }
224 }
225
226 if (q.select) {
227 traverseSelect(q.select)
228 }
229 }
230
231 traverse(query)
232

Callers 4

recordAliasFunction · 0.85
traverseSelectFunction · 0.85
traverseSelectValueFunction · 0.85
extractCollectionAliasesFunction · 0.85

Calls 2

recordAliasFunction · 0.85
traverseSelectFunction · 0.85

Tested by

no test coverage detected