Skip to main content

ForQueryResolver

Type Alias ForQueryResolver 

Source
pub type ForQueryResolver<'a> = dyn Fn(&Statement) -> Result<(Vec<String>, Vec<Vec<Value<'static>>>), TriggerError> + 'a;
Expand description

v7.37.20 (20.5) — callback shape the DO-block executor registers on BodyCtx for FOR-IN-SELECT loops. Runs the supplied SELECT statement against the engine and returns every row’s values. v7.39 (read01 round 64) — the COLUMN NAMES ride along now, so the loop can bind a record variable’s fields (rec.v), not just its first cell.