where method
Future<List<TEntity> >
where({
- Iterable<
ColumnDefinition< ? columns(IEntity, dynamic> >- TMeta t
- List<
OrmOrder> ? orderBy(- TMeta t
- Filter filter(
- TMeta t
- int? limit,
- int? offset,
- bool? useIsolate,
- Map<
String, dynamic> ? isolateArgs, - void onIsolatePreMap()?,
inherited
Implementation
@override
Future<List<TEntity>> where({
Iterable<ColumnDefinition>? Function(TMeta t)? columns,
List<OrmOrder>? Function(TMeta t)? orderBy,
Filter Function(TMeta t)? filter,
int? limit,
int? offset,
final bool? useIsolate,
Map<String, dynamic>? isolateArgs,
void Function(Map<String, dynamic>? isolateArgs)? onIsolatePreMap,
}) async {
List<TEntity> maps = await query(
where: filter,
limit: limit,
offset: offset,
columns: columns ?? (t) => t.columns,
orderBy: orderBy,
useIsolate: useIsolate,
isolateArgs: isolateArgs,
onIsolatePreMap: onIsolatePreMap,
);
if (maps.isNotEmpty) {
return maps;
}
return [];
}