doExistIDsSQL<I extends Object> method
FutureOr<List<I> >
doExistIDsSQL<I extends Object>(
- String entityName,
- String table,
- SQL sql,
- Transaction transaction,
- DBMySqlConnectionWrapper connection,
override
Implementation
@override
FutureOr<List<I>> doExistIDsSQL<I extends Object>(
String entityName,
String table,
SQL sql,
Transaction transaction,
DBMySqlConnectionWrapper connection) {
if (sql.isDummy) return <I>[];
return connection
.query(sql.sqlPositional, sql.parametersValuesByPosition)
.resolveMapped((results) {
var ids = results
.map((e) => e.fields)
.whereType<Map<String, dynamic>>()
.map((e) => e['id']);
return parseIDs<I>(ids);
});
}