Compile a PyQL query string to SQL against schema, using default
session config (see ir::SessionConfig) — for schema-time/test callers
with no live client-supplied config. compile_with_config is the real
entry a query request uses.
Compile a schema Trigger’s handler PyQL statement (e.g. insert Note { note := __new__.name }) to a full SQL statement, for embedding in the
generated plpgsql trigger function body — see ir::compile_trigger_handler
for the __new__/__old__ row-context binding rules. on_mask is
Pylon’s On bitmask (1=Insert, 2=Update, 4=Delete), matching
TriggerDescriptor::on. Query parameters ($name) are rejected, same
rule as compile_fill_expr — a trigger handler has no caller to supply
them.
The shape id for a given SQL string and result shape — the derivation
compile_uncached uses to populate CompiledQuery::shape_id, exposed so
anything else constructing a CompiledQuery by hand can fill that field
consistently rather than inventing its own value.