find method
Find the QueryResultRow
given a field and value.
Implementation
@override
QueryResultRow? find(String field, dynamic value) {
if (postgreSQLResult != null) {
for (var map in postgreSQLResult!) {
var columnMap = map.toColumnMap();
var checkValue = columnMap[field];
if (checkValue == value) {
return PGQueryResultRow.fromPostgresqlResultSetRow(map);
}
}
return null;
}
throw StateError("No query result defined.");
}