Skip to main content

Module compile

Module compile 

Source
Expand description

Pure compiler: plans to MongoDB filters, update documents and pipelines.

Nothing here touches a server; every function returns an error for a plan the backend cannot express, so unsupported plans fail before any I/O.

Structs§

CompiledDelete
A compiled delete.
CompiledInsert
A compiled insert.
CompiledQuery
A compiled read: run pipeline on collection.
CompiledUpdate
A compiled update.
Keys
Which column of a collection is stored as _id.

Enums§

CompiledWrite
A compiled write.
UpdateSpec
How an update changes documents.

Functions§

compile_query
Compile a read plan.
compile_write
Compile a write plan.