doSelectIDsBy<I extends Object> method
FutureOr<List<I> >
doSelectIDsBy<I extends Object>(
- TransactionOperation op,
- String entityName,
- String table,
- EntityMatcher matcher, {
- Object? parameters,
- List? positionalParameters,
- Map<
String, Object?> ? namedParameters, - int? limit,
override
Implementation
@override
FutureOr<List<I>> doSelectIDsBy<I extends Object>(TransactionOperation op,
String entityName, String table, EntityMatcher matcher,
{Object? parameters,
List? positionalParameters,
Map<String, Object?>? namedParameters,
int? limit}) {
return generateSelectIDsSQL(op.transaction, entityName, table, matcher,
parameters: parameters,
positionalParameters: positionalParameters,
namedParameters: namedParameters,
limit: limit)
.resolveMapped((sql) {
return selectSQL(op, entityName, table, sql)
.resolveMapped((r) => _finishSQLOperation(sql, op, r, (results) {
var ids = results.map((e) => e['id']);
return parseIDs<I>(ids);
}));
});
}