Future<void> insertLog(LogEntry entry) async { final txn = _db.transaction(_storeName, 'readwrite'); final store = txn.objectStore(_storeName); await store.add(entry.toJson()); await txn.completed; }