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