iterate method

  1. @override
Stream<AccessLogEntry> iterate()
override

Iterate every access-log entry in insertion order. Used by the persistence migrator to copy access-log content from one backend to another.

Implementation

@override
Stream<AccessLogEntry> iterate() async* {
  final rows = _db.raw.select(
      'SELECT from_atsign, request_at, verb_name, lookup_key FROM access_log '
      'ORDER BY seq;');
  for (final r in rows) {
    yield _entryFromRow(r);
  }
}