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

Function extractFromConditionalSelect

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

Source from the content-addressed store, hash-verified

77 }
78
79 function extractFromConditionalSelect(conditional: ConditionalSelect) {
80 for (const branch of conditional.branches) {
81 extractFromSelectValue(branch.value)
82 }
83 if (conditional.defaultValue !== undefined) {
84 extractFromSelectValue(conditional.defaultValue)
85 }
86 }
87
88 function extractFromSelectValue(value: any) {
89 if (value instanceof IncludesSubquery) {

Callers 2

extractFromSelectFunction · 0.85
extractFromSelectValueFunction · 0.85

Calls 1

extractFromSelectValueFunction · 0.85

Tested by

no test coverage detected