where method

  1. @override
Future<List<TEntity>> where({
  1. Iterable<ColumnDefinition<IEntity, dynamic>>? columns(
    1. TMeta t
    )?,
  2. List<OrmOrder>? orderBy(
    1. TMeta t
    )?,
  3. Filter filter(
    1. TMeta t
    )?,
  4. int? limit,
  5. int? offset,
  6. bool? useIsolate,
  7. Map<String, dynamic>? isolateArgs,
  8. void onIsolatePreMap(
    1. Map<String, dynamic>? isolateArgs
    )?,
})
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 [];
}