compileQuery

Function: compileQuery()

ts
function compileQuery(
   rawQuery, 
   inputs, 
   cache, 
   queryMapping): CompilationResult
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

Our Partners
Electric
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.