Makes Pg.each loopable.
- q: the
Pg.eachcall. - body: the loop body.
- flags: the loop's flags.
for_expansion :: (
q: *Orm_Each($D, $T, $where, $order_by, $desc, $limit, $offset, $from_sql, $strategy, $call),
body: Code,
flags: For_Flags
)
Makes Pg.each loopable.
Parameters
- q: *Orm_Each($D, $T, $where, $order_by, $desc, $limit, $offset, $from_sql, $strategy, $call)
- the
Pg.eachcall. - body: Code
- the loop body.
- flags: For_Flags
- the loop's flags.
for_expansion :: (rows: *Rows($T), body: Code, flags: For_Flags)
Loops over the rows, decoding each into it. A row that fails to decode stops the loop and
sets rows.error.
Parameters
- rows: *Rows($T)
- the rows to loop over.
- body: Code
- the loop body.
- flags: For_Flags
- the loop's flags.
for_expansion :: (stream: *Row_Stream($T), body: Code, flags: For_Flags)
Loops over the streamed rows, fetching a batch when the last one is used up.
Parameters
- stream: *Row_Stream($T)
- the stream to loop over.
- body: Code
- the loop body.
- flags: For_Flags
- the loop's flags.