function compileQuery(
rawQuery,
inputs,
collections,
subscriptions,
callbacks,
lazySources,
optimizableOrderByCollections,
setWindowFn,
cache,
queryMapping,
parentKeyStream?,
childCorrelationField?): CompilationResult;Defined in: packages/db/src/query/compiler/index.ts:130
Compiles a query IR into a D2 pipeline
The query IR to compile
Record\<`string`, [`KeyedStream`](../type-aliases/KeyedStream.md)\>
Mapping of source aliases to input streams (e.g., { employee: input1, manager: input2 })
Record\<`string`, [`Collection`](../interfaces/Collection.md)\<`any`, `any`, `any`, `any`, `any`\>>
Mapping of collection IDs to Collection instances
Record\<`string`, `CollectionSubscription`\>
Mapping of source aliases to CollectionSubscription instances
Record\<`string`, `LazyCollectionCallbacks`\>
Mapping of source aliases to lazy loading callbacks
Set\<`string`\>
Set of source aliases that should load data lazily
Record\<`string`, `OrderByOptimizationInfo`\>
Map of collection IDs to order-by optimization info
(windowFn) => void
QueryCache = ...
Optional cache for compiled subqueries (used internally for recursion)
QueryMapping = ...
Optional mapping from optimized queries to original queries
PropRef\<`any`\>
CompilationResult
A CompilationResult with the pipeline, source WHERE clauses, and alias metadata