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

Function traverseConditionalSelect

packages/db/src/query/live/utils.ts:196–203  ·  view source on GitHub ↗
(conditional: ConditionalSelect)

Source from the content-addressed store, hash-verified

194 }
195
196 function traverseConditionalSelect(conditional: ConditionalSelect) {
197 for (const branch of conditional.branches) {
198 traverseSelectValue(branch.value)
199 }
200 if (conditional.defaultValue !== undefined) {
201 traverseSelectValue(conditional.defaultValue)
202 }
203 }
204
205 function traverseSelectValue(value: any) {
206 if (value instanceof IncludesSubquery) {

Callers 2

traverseSelectFunction · 0.85
traverseSelectValueFunction · 0.85

Calls 1

traverseSelectValueFunction · 0.85

Tested by

no test coverage detected