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

Function processSelect

packages/db/src/query/compiler/select.ts:154–165  ·  view source on GitHub ↗
(
  pipeline: NamespacedAndKeyedStream,
  select: Select,
  _allInputs: Record<string, KeyedStream>,
)

Source from the content-addressed store, hash-verified

152 * while preserving the original namespaced row for ORDER BY access
153 */
154export function processSelect(
155 pipeline: NamespacedAndKeyedStream,
156 select: Select,
157 _allInputs: Record<string, KeyedStream>,
158): NamespacedAndKeyedStream {
159 // Build ordered operations to preserve authoring order (spreads and fields)
160 const ops: Array<SelectOp> = []
161
162 addFromObject([], select, ops)
163
164 return pipeline.pipe(map((row) => processRow(row, ops)))
165}
166
167function compileSelectObject(
168 obj: Record<string, any>,

Callers 1

compileQueryFunction · 0.85

Calls 4

mapFunction · 0.90
addFromObjectFunction · 0.85
processRowFunction · 0.85
pipeMethod · 0.80

Tested by

no test coverage detected