forEach method
Run a function taking a QueryResultRow
on the whole QueryResult
.
Implementation
@override
void forEach(Function rowFunction) {
if (postgreSQLResult != null) {
postgreSQLResult!.forEach((row) {
rowFunction(PGQueryResultRow.fromPostgresqlResultSetRow(row));
});
return;
}
throw StateError("No query result defined.");
}