sql query

Hello,

I am writing a server side plugin. I want to get / update data from history table. I browsed through the java docs and looks like i can use sqlrunner package. Can you please provide me the code snippet using sqlrunner and run methods. e.g, i want to run following query on history table form the code:

update history set status=? where build_id=?

How do i that?

Thanks.

1 comment

SqlRunner is not a part of OpenAPI and probably you should not update history table directly. There are various caches, which should be refreshed after such update. Could you please provide more details about your plugin? Maybe there is another way to do what you want.

0

Please sign in to leave a comment.