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

Function extractFromSelect

packages/db/src/query/live/utils.ts:64–77  ·  view source on GitHub ↗
(select: any)

Source from the content-addressed store, hash-verified

62 }
63
64 function extractFromSelect(select: any) {
65 for (const [key, value] of Object.entries(select)) {
66 if (typeof key === `string` && key.startsWith(`__SPREAD_SENTINEL__`)) {
67 continue
68 }
69 if (value instanceof IncludesSubquery) {
70 extractFromQuery(value.query)
71 } else if (value instanceof ConditionalSelect) {
72 extractFromConditionalSelect(value)
73 } else if (isNestedSelectObject(value)) {
74 extractFromSelect(value)
75 }
76 }
77 }
78
79 function extractFromConditionalSelect(conditional: ConditionalSelect) {
80 for (const branch of conditional.branches) {

Callers 2

extractFromQueryFunction · 0.85
extractFromSelectValueFunction · 0.85

Calls 4

extractFromQueryFunction · 0.85
isNestedSelectObjectFunction · 0.70
entriesMethod · 0.45

Tested by

no test coverage detected