insertMany method

  1. @override
Future<int> insertMany({
  1. required List<T> entities,
  2. Database? database,
})
override

Implementation

@override
Future<int> insertMany(
    {required List<T> entities, Database? database}) async {
  final Database db = database != null ? database : this.database;

  await Future.forEach(
      entities, ((T entity) => insertOne(entity: entity, database: db)));

  return 1;
}