getLastAccessLogEntry method
Most-recent access-log entry, regardless of verb.
Implementation
@override
Future<AccessLogEntry> getLastAccessLogEntry() async {
final rows = _db.raw.select(
'SELECT from_atsign, request_at, verb_name, lookup_key FROM access_log '
'ORDER BY seq DESC LIMIT 1;');
if (rows.isEmpty) {
throw StateError('access_log is empty');
}
return _entryFromRow(rows.first);
}