forEachField
Streams the result, handing the first column of each row to block as T.
Carries the same constraints as forEachRow.
Parameters
params
Values for $1, $2, … in declaration order.
fetchSize
Rows per batch, or 0 for the whole result in one. Required — there is no default.
block
Invoked once per value, on the calling thread.
Type Parameters
T
The type the column is mapped to.
Throws
if a value cannot be mapped to T, or wrapping anything block throws that is not an OctaviusException.