Skip to main content

Module expression

Module expression 

Source

Structs§

CompileContext
Compilation context
CompiledEvaluator
Compiled expression evaluator using the Expression VM.
ExecuteContext
Execution context for the VM
ExprCompiler
Expression compiler
ExprVM
ExpressionEval
Lightweight expression evaluator using direct VM execution.
JoinFilter
A filter for join condition evaluation between two rows.
MultiExpressionEval
Evaluates multiple expressions efficiently (for SELECT projections).
Program
Compiled expression program
RowFilter
A lightweight, thread-safe row filter for closure-based filtering.

Enums§

CompileError
Compilation error
Constant
Constant value stored in the program
Op
Expression VM Operation

Traits§

SubqueryExecutor
Trait for executing subqueries

Functions§

clear_program_cache
Clear the program cache. Call on database drop to release memory.
compile_expression
Compile an expression to a program for a given column schema.
compile_expression_with_context
Compile an expression with full context (parameters, outer columns, etc.)
compute_expression_hash
Compute a u64 hash of an expression without string allocation. This is O(expression_size) and avoids Debug formatting overhead. Use this for cache keys instead of format!(“{:?}”, expr). Uses FxHasher which is 2-5x faster than SipHash for small keys.
is_non_foldable_function
Check if a function must NOT be constant-folded.
try_eval_constant_expr
Evaluate a column-free AST expression to a concrete Value at query time.

Type Aliases§

SharedProgram
Shared program reference for zero-copy caching