doSelectSQL method
FutureOr<Iterable<Map<String, dynamic> > >
doSelectSQL(
- String entityName,
- String table,
- SQL sql,
- Transaction transaction,
- PostgreSQLConnectionWrapper connection,
override
Implementation
@override
FutureOr<Iterable<Map<String, dynamic>>> doSelectSQL(
String entityName,
String table,
SQL sql,
Transaction transaction,
PostgreSQLConnectionWrapper connection) {
if (sql.isDummy) return <Map<String, dynamic>>[];
return connection
.mappedResultsQuery(sql.sql,
substitutionValues: sql.parametersByPlaceholder)
.resolveMapped((results) {
var entries = results
.map((e) => e[table])
.whereType<Map<String, dynamic>>()
.toList();
return entries;
});
}