Skip to main content

Module native_exec

Module native_exec 

Source
Expand description

Native select-query execution (step 27.1, item M12).

The MSysQueries decoder (M3) exposes the stored query verbatim; this module executes the qualified subset over materialized port rows: select queries over one or more tables with equality joins (inner/left/right), Access boolean WHERE expressions (the expression service’s grammar — And/Or/Not, In, Is [Not] Null, Like, Between, brackets and double-quoted text), Table.* wildcards and ORDER BY entries.

Everything outside that subset answers a precise NativeExecError::Unsupported: other query flavors, GROUP BY/HAVING, parameters, select modifiers (DISTINCT/TOP/PERCENT), computed columns, self-joins and non-equality joins. Identifiers are whitelisted against the schema (LESSONS #5) before any evaluation; ambiguous bare names are refused instead of resolved by insertion order. A deterministic row cap protects the process from crafted cartesian joins (LESSONS #7).

Enums§

NativeExecError
Why a native query could not execute; every variant carries a precise, locatable detail.

Constants§

MAX_JOINED_ROWS
Deterministic guard against crafted cartesian joins.

Functions§

run
Executes one decoded native query over materialized source rows. sources pairs every FROM table with its rows; lookups are case-insensitive.