sqlbrite/src/main/java/com/squareup/sqlbrite3/BriteDatabase.java
@WorkerThread
  public int update(@NonNull String table, @ConflictAlgorithm int conflictAlgorithm,
      @NonNull ContentValues values, @Nullable String whereClause, @Nullable String... whereArgs) {
    SupportSQLiteDatabase db = getWritableDatabase();

    if (logging) {
      log("UPDATE\n  table: %s\n  values: %s\n  whereClause: %s\n  whereArgs: %s\n  conflictAlgorithm: %s",
          table, values, whereClause, Arrays.toString(whereArgs),
          conflictString(conflictAlgorithm));
    }
    int rows = db.update(table, conflictAlgorithm, values, whereClause, whereArgs);

    if (logging) log("UPDATE affected %s %s", rows, rows != 1 ? "rows" : "row");

    if (rows > 0) {
      // Only send a table trigger if rows were affected.
      sendTableTrigger(Collections.singleton(table));
    }
    return rows;
  }
@WorkerThread
  public int update(@NonNull String table, @ConflictAlgorithm int conflictAlgorithm,
      @NonNull ContentValues values, @Nullable String whereClause, @Nullable String... whereArgs) {
    SupportSQLiteDatabase db = getWritableDatabase();

    if (logging) {
      log("UPDATE\n  table: %s\n  values: %s\n  whereClause: %s\n  whereArgs: %s\n  conflictAlgorithm: %s",
          table, values, whereClause, Arrays.toString(whereArgs),
          conflictString(conflictAlgorithm));
    }
    int rows = db.update(table, conflictAlgorithm, values, whereClause, whereArgs);

    if (logging) log("UPDATE affected %s %s", rows, rows != 1 ? "rows" : "row");

    if (rows > 0) {
      // Only send a table trigger if rows were affected.
      sendTableTrigger(Collections.singleton(table));
    }
    return rows;
  }
@ WorkerThread public int update ( @ NonNull String table , @ ConflictAlgorithm int conflictAlgorithm , @ NonNull ContentValues values , @ Nullable String whereClause , @ Nullable String ... whereArgs ) { SupportSQLiteDatabase db = getWritableDatabase ( ) ; if ( logging ) { log ( "UPDATE\n  table: %s\n  values: %s\n  whereClause: %s\n  whereArgs: %s\n  conflictAlgorithm: %s" , table , values , whereClause , Arrays . toString ( whereArgs ) , conflictString ( conflictAlgorithm ) ) ; } int rows = db . update ( table , conflictAlgorithm , values , whereClause , whereArgs ) ; if ( logging ) log ( "UPDATE affected %s %s" , rows , rows != 1 ? "rows" : "row" ) ; if ( rows > 0 ) { // Only send a table trigger if rows were affected. sendTableTrigger ( Collections . singleton ( table ) ) ; } return rows ; }
Update rows in the specified {@code table} and notify any subscribed queries. This method
will not trigger a notification if no rows were updated.

@see SupportSQLiteDatabase#update(String, int, ContentValues, String, Object[])
Update rows in the specified { @code table } and notify any subscribed queries . This method will not trigger a notification if no rows were updated .