bulkCreate method
Implementation
@override
FutureOr<void> bulkCreate(
List<ProjectFacilityModel> entities,
) async {
return retryLocalCallOperation(() async {
final projectFacilityCompanions =
entities.map((e) => e.companion).toList();
await sql.batch((batch) async {
batch.insertAll(
sql.projectFacility,
projectFacilityCompanions,
mode: InsertMode.insertOrReplace,
);
});
});
}