handleUpdate method

Future<int> handleUpdate()

Handle udpate.

Implementation

Future<int> handleUpdate() async {
  var database = getDatabaseOrThrow();
  if (database.readOnly) {
    throw SqfliteFfiException(
        code: sqliteErrorCode, message: 'Database readonly');
  }

  await handleExecute();

  var rowCount = database.getUpdatedRows();

  return rowCount;
}