whereMap method

  1. @override
Future<List<Map<String, dynamic>>> whereMap({
  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<Map<String, dynamic>>> whereMap({
  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<Map<String, Object?>> maps = await queryMap(
    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 [];
}