applyBatch method

Future<void> applyBatch(
  1. List<WalOp> ops
)

Applies puts and deletes as one WAL object.

Object stores commit per object, so one object per batch is the transaction unit: a crash either leaves the whole batch or none of it.

Implementation

Future<void> applyBatch(List<WalOp> ops) async {
  if (ops.isEmpty) return;
  await _appendWal(ops);
}