insertInitialSyncData method

Future<void> insertInitialSyncData({
  1. required String dbName,
})

Cycle to all the synced tables and populate them with datas...

Implementation

Future<void> insertInitialSyncData({required String dbName}) async {
  final now = DateTime.now().toUtc();
  for (String tablename in tableInfos.keys) {
    final TableInfo? tableInfo = tableInfos[tablename];
    if (tableInfo == null) continue;
    await _insertInitialSyncData(tablename, tableInfo.keyField, now,
        rowFilter: tableInfo.rowFilter, dbName: dbName);
  }
}