According to my information, unfortunately, to perform a bulk update (based on some criteria), we should use only the sql query. No method like bulkDelete_ !! available for bulk update.
For instance:
def updateNameById (newName : String, id : Long) = { val updateString = "update MyModel set name = ? where id = ?" DB.use(DefaultConnectionIdentifier) { conn => DB.prepareStatement(updateString, conn) { stmt => stmt.setString(1, newName) stmt.setLong(2, id) stmt.executeUpdate() } } }
source share