forEachRowOf
Executes the query and processes each row individually using the provided action, without loading the entire result into memory. Ideal for large datasets. Returns DataResult.Success(Unit) if the operation succeeded or DataResult.Failure in case of error.
Parameters
Query parameters.
Manual mapper to use for converting the row to a data object.
Function that will be executed for each row. The row is mapped to a data object.
Executes the query and processes each row individually using the provided action, without loading the entire result into memory. Ideal for large datasets. Returns DataResult.Success(Unit) if the operation succeeded or DataResult.Failure in case of error.
Parameters
Query parameters.
Function that will be executed for each row. The row is mapped to a data class.