MongoQueryCompiler

oolong.mongo.MongoQueryCompiler

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def opt[Doc : Type](ast: QExpr)(implicit evidence$1: Type[Doc], quotes: Quotes): MongoQueryNode

Translate AST into a form that allows us to do backend optimizations.

Translate AST into a form that allows us to do backend optimizations.

Attributes

Definition Classes
Backend
override def optimize(query: MongoQueryNode)(using quotes: Quotes): MongoQueryNode

Perform optimizations that are specific to this backend.

Perform optimizations that are specific to this backend.

Attributes

Definition Classes
Backend
override def render(node: MongoQueryNode)(using quotes: Quotes): String

Render the final optimized version of a query. Output will be displayed as a compilation message.

Render the final optimized version of a query. Output will be displayed as a compilation message.

Attributes

Definition Classes
Backend
override def target(optRepr: MongoQueryNode)(using quotes: Quotes): Expr[BsonDocument]

Translate an optimized query into the target represantion; also lift the result into Expr[].

Translate an optimized query into the target represantion; also lift the result into Expr[].

Attributes

Definition Classes
Backend