backfillProgress method

Future<DVCaptureBackfillProgress?> backfillProgress(
  1. String model
)

Where the backfill of model stands, or null when none has started.

Implementation

Future<DVCaptureBackfillProgress?> backfillProgress(String model) async {
  await capture._ensureReady();
  final List<Map<String, Object?>> rows = await _records.find(
    DVCapture.backfillTable,
    where: _backfillOf(model),
  );
  if (rows.isEmpty) return null;
  return DVCaptureBackfillProgress(
    model: model,
    throughSequence: _asInt(rows.first['through_seq']),
    rows: _asInt(rows.first['rows_done']),
    done: _asInt(rows.first['done']) == 1,
  );
}