MCPcopy Create free account
hub / github.com/TanStack/db / getFromSources

Function getFromSources

packages/db/src/query/compiler/index.ts:1528–1538  ·  view source on GitHub ↗
(
  from: QueryIR[`from`],
)

Source from the content-addressed store, hash-verified

1526}
1527
1528function getFromSources(
1529 from: QueryIR[`from`],
1530): Array<CollectionRef | QueryRef> {
1531 if (from.type === `unionFrom`) {
1532 return from.sources
1533 }
1534 if (from.type === `unionAll`) {
1535 return []
1536 }
1537 return [from]
1538}
1539
1540function getAllSources(query: QueryIR): Array<CollectionRef | QueryRef> {
1541 return [

Callers 6

validateQueryStructureFunction · 0.70
getRefFromAliasFunction · 0.70
getAllSourcesFunction · 0.70
getFirstFromAliasFunction · 0.70
mapNestedFromQueriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected