onWriteEntries abstract method

  1. @protected
Future<List<StoredLogEntry>> onWriteEntries(
  1. List<LogEntry> entries
)

Saves entries in this order and returns them with ids (StoredLogEntry.id): increasing in save order and never reused (in SQLite, INTEGER PRIMARY KEY AUTOINCREMENT). Entries are already in stored form (LogEntry.withoutLiveObjects). A batch is best saved in one transaction; the sink passes the next one only after this one completes. The base sends LogEntriesAdded.

Implementation

@protected
Future<List<StoredLogEntry>> onWriteEntries(List<LogEntry> entries);