Skip to main content

Crate jetro

Crate jetro 

Source
Expand description

Thin façade crate — re-exports jetro_core through the public Jetro API.

All parsing, optimisation, and execution live in jetro_core. This crate provides the byte-oriented Jetro handle plus JetroEngine for long-lived plan/VM reuse and NDJSON processing.

Modules§

introspect
Opt-in query introspection.
io
Streaming input/output adapters for query execution.

Structs§

EvalError
Evaluation error carrying a human-readable message. Propagated through Result<Val, EvalError> across all execution layers.
Jetro
Byte-oriented query handle. Wraps jetro_core::Jetro and exposes document parsing plus query collection.
JetroEngine
Long-lived multi-document query engine with an explicit plan cache. Use when the same process evaluates many expressions over many documents — parse/lower/compile work is amortised by this object, not hidden in thread-local state.

Enums§

JetroEngineError
Error returned by JetroEngine::collect_bytes and similar methods that may fail during JSON parsing or during expression evaluation.