Open History to see the last commit
Function: compileQuery()#
function compileQuery(
rawQuery,
inputs,
cache,
queryMapping): CompilationResult
Defined in: packages/db/src/query/compiler/index.ts:46
Compiles a query2 IR into a D2 pipeline
Parameters#
rawQuery#
QueryIR
The query IR to compile
inputs#
Record<string, KeyedStream>
Mapping of collection names to input streams
cache#
QueryCache = ...
Optional cache for compiled subqueries (used internally for recursion)
queryMapping#
QueryMapping = ...
Optional mapping from optimized queries to original queries
Returns#
CompilationResult
A CompilationResult with the pipeline and collection WHERE clauses