updateFetchHistoryPages method

Future<int> updateFetchHistoryPages(
  1. String tableName,
  2. String pages,
  3. int totalRecord,
  4. int success,
)

Implementation

Future<int> updateFetchHistoryPages(
    String tableName, String pages, int totalRecord, int success) async {
  Database db = await instance.database;
  var a = 'update FetchHistory set Pages = Pages || "$pages,", '
      'TotalRecord = $totalRecord, Success = $success where TableName=?';
  return await db.rawUpdate(
      'update FetchHistory set Pages = Pages || "$pages,", '
      'TotalRecord = $totalRecord, Success = $success where TableName=?',
      [tableName]);
}