Skip to main content

Module query

Module query 

Source
Expand description

The runner (spec/surface/README.md §1.4): parse the source, rewrite the row functions to $self methods, run it through the engine over the store context, and shape the engine’s result into the surface’s OqxResult (lean { id, path, … } hits, keyset paging, the consumer scalars). Port of packages/core/src/oqx-js/run.ts.

By default the tier-3 planner (crate::planner) pre-filters the scan in SQL and the in-memory engine finishes the residual over the produced rows; QueryOptions::in_memory forces the pure in-memory engine (the differential gate runs every case both ways — a planner must be invisible).

Structs§

OqxResult
§1.4 OqxResult.
QueryOptions
query’s options.

Constants§

DEFAULT_LIMIT
The default page size.

Functions§

collect_semantic_phrases
The distinct phrases semantic("…") names (free calls in the raw parse); empty when the source does not parse.
query
Run an OQX query against repo_id (§1.4).
rewrite_query
Rewrite every row function in a parsed query to a $self method call.