code: public int update(@NotNull SqlQuery query) {
          return withCurrentTransaction(query, tx -> {
              logQuery(query);
  
              try (PreparedStatement ps = tx.getConnection().prepareStatement(query.getSql())) {
                  prepareStatementFromQuery(ps, query);
  
                  long startTime = currentTimeMillis();
                  int count = ps.executeUpdate();
                  logQueryExecution(query, currentTimeMillis() - startTime);
                  return count;
              }
          });
      }
docs: Executes an update against the database and returns the amount of affected rows.