forEach method

  1. @override
void forEach(
  1. Function rowFunction
)
override

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.");
}